mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
d3199a96e6
commit_hash:9e9f4e93c906b7d649d936d32b35796b27f4fc04
95 lines
2.0 KiB
JSON
95 lines
2.0 KiB
JSON
{
|
|
"type": "object",
|
|
"$description": "translations.json#/div_action_submit",
|
|
"definitions": {
|
|
"parameter": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
},
|
|
"request": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"$ref": "common.json#/url",
|
|
"$description": "translations.json#/div_action_submit_request_url"
|
|
},
|
|
"headers": {
|
|
"type": "array",
|
|
"$description": "translations.json#/div_action_submit_request_headers",
|
|
"items": {
|
|
"$ref": "#/definitions/parameter"
|
|
}
|
|
},
|
|
"method": {
|
|
"type": "string",
|
|
"default_value": "post",
|
|
"$description": "translations.json#/div_action_submit_request_method",
|
|
"enum": [
|
|
"get",
|
|
"post",
|
|
"put",
|
|
"patch",
|
|
"delete",
|
|
"head",
|
|
"options"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"url"
|
|
]
|
|
}
|
|
},
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"submit"
|
|
]
|
|
},
|
|
"container_id": {
|
|
"type": "string",
|
|
"$description": "translations.json#/div_action_submit_container_id"
|
|
},
|
|
"request": {
|
|
"$ref": "#/definitions/request",
|
|
"$description": "translations.json#/div_action_submit_request"
|
|
},
|
|
"on_success_actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "div-action.json"
|
|
},
|
|
"$description": "translations.json#/div_action_submit_on_success_actions"
|
|
},
|
|
"on_fail_actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "div-action.json"
|
|
},
|
|
"$description": "translations.json#/div_action_submit_on_fail_actions"
|
|
}
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
],
|
|
"required": [
|
|
"type",
|
|
"container_id",
|
|
"request"
|
|
]
|
|
}
|