mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
70105b69f9
213b4ad65d5c854bae8c38126a476d5ad619382c
36 lines
868 B
JSON
36 lines
868 B
JSON
{
|
|
"type": "object",
|
|
"$description": "translations.json#/div_function",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"$description": "translations.json#/div_function_name",
|
|
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$",
|
|
"supports_expressions": false
|
|
},
|
|
"body": {
|
|
"type": "string",
|
|
"$description": "translations.json#/div_function_body",
|
|
"supports_expressions": false
|
|
},
|
|
"return_type": {
|
|
"$ref": "div-evaluable-type.json",
|
|
"$description": "translations.json#/div_function_return_type",
|
|
"supports_expressions": false
|
|
},
|
|
"arguments": {
|
|
"type": "array",
|
|
"$description": "translations.json#/div_function_argument",
|
|
"items": {
|
|
"$ref": "div-function-argument.json"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"body",
|
|
"return_type",
|
|
"arguments"
|
|
]
|
|
}
|