Skip to content

Commit

Permalink
JSON-schema for public 5.131
Browse files Browse the repository at this point in the history
  • Loading branch information
vkcom authored and Ruslan Kalinov committed Sep 28, 2022
1 parent da39986 commit 748a5e3
Show file tree
Hide file tree
Showing 136 changed files with 49,321 additions and 48,440 deletions.
612 changes: 612 additions & 0 deletions account/methods.json

Large diffs are not rendered by default.

542 changes: 542 additions & 0 deletions account/objects.json

Large diffs are not rendered by default.

164 changes: 164 additions & 0 deletions account/responses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "responses",
"definitions": {
"account_changePassword_response": {
"type": "object",
"properties": {
"response": {
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "New token",
"required": true
},
"secret": {
"type": "string",
"description": "New secret"
}
},
"additionalProperties": false,
"required": true
}
},
"additionalProperties": false
},
"account_getActiveOffers_response": {
"type": "object",
"properties": {
"response": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Total number",
"required": true
},
"items": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_offer"
},
"required": true
}
},
"additionalProperties": false,
"required": true
}
},
"additionalProperties": false
},
"account_getAppPermissions_response": {
"type": "object",
"properties": {
"response": {
"type": "integer",
"description": "Permissions mask",
"required": true
}
},
"additionalProperties": false
},
"account_getBanned_response": {
"type": "object",
"properties": {
"response": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Total number",
"required": true
},
"items": {
"type": "array",
"items": {
"entity": "owner",
"format": "int64",
"type": "integer"
},
"required": true
},
"profiles": {
"type": "array",
"items": {
"$ref": "../users/objects.json#/definitions/users_user_full"
}
},
"groups": {
"type": "array",
"items": {
"$ref": "../groups/objects.json#/definitions/groups_group"
}
}
},
"additionalProperties": false,
"required": true
}
},
"additionalProperties": false
},
"account_getCounters_response": {
"type": "object",
"properties": {
"response": {
"$ref": "../account/objects.json#/definitions/account_account_counters",
"required": true
}
},
"additionalProperties": false
},
"account_getInfo_response": {
"type": "object",
"properties": {
"response": {
"$ref": "../account/objects.json#/definitions/account_info",
"required": true
}
},
"additionalProperties": false
},
"account_getProfileInfo_response": {
"type": "object",
"properties": {
"response": {
"$ref": "../account/objects.json#/definitions/account_user_settings",
"required": true
}
},
"additionalProperties": false
},
"account_getPushSettings_response": {
"type": "object",
"properties": {
"response": {
"$ref": "../account/objects.json#/definitions/account_push_settings",
"required": true
}
},
"additionalProperties": false
},
"account_saveProfileInfo_response": {
"type": "object",
"properties": {
"response": {
"type": "object",
"properties": {
"changed": {
"description": "1 if changes has been processed",
"$ref": "../base/objects.json#/definitions/base_bool_int",
"required": true
},
"name_request": {
"$ref": "../account/objects.json#/definitions/account_name_request"
}
},
"additionalProperties": false,
"required": true
}
},
"additionalProperties": false
}
}
}
25 changes: 25 additions & 0 deletions addresses/objects.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "objects",
"definitions": {
"addresses_fields": {
"type": "string",
"enum": [
"id",
"title",
"address",
"additional_address",
"country_id",
"city_id",
"metro_station_id",
"latitude",
"longitude",
"distance",
"work_info_status",
"timetable",
"phone",
"time_offset"
]
}
}
}
Loading

0 comments on commit 748a5e3

Please sign in to comment.