mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
72b30f4c91
commit_hash:0a7b7cbd9dd7b7a91b67e7445fa340689dfe84b4
117 lines
2.6 KiB
JSON
117 lines
2.6 KiB
JSON
{
|
|
"$description": "translations.json#/div_action_scroll_destination",
|
|
"definitions": {
|
|
"offset_destination": {
|
|
"$description": "translations.json#/div_action_scroll_destination_offset",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"offset"
|
|
]
|
|
},
|
|
"value": {
|
|
"$description": "translations.json#/div_action_scroll_destination_offset_value",
|
|
"$ref": "common.json#/non_negative_integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"value"
|
|
]
|
|
},
|
|
"index_destination": {
|
|
"$description": "translations.json#/div_action_scroll_destination_index",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"index"
|
|
]
|
|
},
|
|
"value": {
|
|
"$description": "translations.json#/div_action_scroll_destination_index_value",
|
|
"$ref": "common.json#/non_negative_integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"value"
|
|
]
|
|
},
|
|
"start_destination": {
|
|
"$description": "translations.json#/div_action_scroll_destination_start",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"start"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"end_destination": {
|
|
"$description": "translations.json#/div_action_scroll_destination_end",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"end"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"item_id_destination": {
|
|
"$description": "translations.json#/div_action_scroll_destination_item_id",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"item_id"
|
|
]
|
|
},
|
|
"value": {
|
|
"$description": "translations.json#/div_action_scroll_destination_item_id_value",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"value"
|
|
],
|
|
"platforms": [
|
|
"android",
|
|
"web"
|
|
]
|
|
}
|
|
},
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/offset_destination"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/index_destination"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/start_destination"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/end_destination"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/item_id_destination"
|
|
}
|
|
]
|
|
}
|