mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
1d68e50782
commit_hash:8863bfcf57ccb5a8b9ea4986010f4770821772db
84 lines
1.7 KiB
JSON
84 lines
1.7 KiB
JSON
{
|
|
"type": "object",
|
|
"$description": "translations.json#/div_patch",
|
|
"typescript_templatable": false,
|
|
"codegen": {
|
|
"divan": {
|
|
"plus_operator": false,
|
|
"required_properties_at_factory": true
|
|
}
|
|
},
|
|
"definitions": {
|
|
"change": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"$ref": "common.json#/id",
|
|
"$description": "translations.json#/div_patch_change_id"
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "div.json"
|
|
},
|
|
"$description": "translations.json#/div_patch_change_items"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"properties": {
|
|
"mode": {
|
|
"type": "string",
|
|
"enum": [
|
|
"transactional",
|
|
"partial"
|
|
],
|
|
"default_value": "partial",
|
|
"$description": "translations.json#/div_patch_mode",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
"changes": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/change"
|
|
},
|
|
"minItems": 1,
|
|
"$description": "translations.json#/div_patch_changes"
|
|
},
|
|
"on_applied_actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "div-action.json"
|
|
},
|
|
"$description": "translations.json#/div_patch_on_applied_actions",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
"on_failed_actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "div-action.json"
|
|
},
|
|
"$description": "translations.json#/div_patch_on_failed_actions",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"changes"
|
|
]
|
|
}
|