@alexa/ask-expressions-spec
Version:
The JSON Schema specification for the Alexa Skills Kit Intermediate Representation (ASKIR).
53 lines (52 loc) • 1.64 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://amazonalexa.com/ask/2020/12/Condition",
"title": "Condition",
"description": "Represents a condition.",
"type": "object",
"additionalProperties": false,
"required": ["kind", "when"],
"properties": {
"kind": {
"const": "Condition",
"title": "kind",
"description": "The expression's identifier."
},
"when": {
"description": "The boolean expression for the condition.",
"oneOf": [
{
"$ref": "https://amazonalexa.com/ask/2020/12/Call"
},
{
"$ref": "https://amazonalexa.com/ask/2020/12/NameReference"
},
{
"$ref": "https://amazonalexa.com/ask/2020/12/Condition"
},
{
"$ref": "https://amazonalexa.com/ask/2020/12/PropertyReference"
}
]
},
"then": {
"description": "Block of expressions for when the boolean expression evaluates to true.",
"$ref": "https://amazonalexa.com/ask/2020/12/SampleBlock"
},
"else": {
"description": "Block of expressions for when all the previous boolean expressions evaluate to false.",
"$ref": "https://amazonalexa.com/ask/2020/12/SampleBlock"
},
"type": {
"description": "The return type of all branches in the Condition",
"$ref": "https://amazonalexa.com/ask/2020/12/TypeReference"
},
"annotations": {
"type": "array",
"items": {
"$ref": "https://amazonalexa.com/ask/2020/12/Call",
"description": "call data structures to annotate this condition declaration."
}
}
}
}