TCS v0.4
branch-condition
Experimental: structure may change in a subsequent edition. This page is pinned to v0.4.
TAM-70 D6: a branch fires on an event (event/event_ref) or on a verb occurrence (action_ref) — at least one is required.
Source fragment
The following is documentation data, not a standalone document or validation schema. Resolve references against the original source schema.
{
"type": "object",
"description": "TAM-70 D6: a branch fires on an event (event/event_ref) or on a verb occurrence (action_ref) — at least one is required.",
"anyOf": [
{
"type": "object",
"required": [
"event"
],
"properties": {
"event": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"action_ref"
],
"properties": {
"action_ref": {
"type": "string"
}
}
}
],
"additionalProperties": false,
"properties": {
"actor": {
"type": "string",
"enum": [
"performer",
"spectator",
"assistant",
"system"
],
"description": "Optional actor who triggers the event"
},
"event": {
"type": "string",
"minLength": 1,
"description": "Event identifier. Reference taxonomy registry for canonical events."
},
"event_ref": {
"type": "string",
"description": "Optional reference to event in taxonomy registry (v0.3)"
},
"action_ref": {
"type": "string",
"minLength": 1,
"description": "TAM-70 D6: an action id (or step_composite id) whose occurrence fires this branch, e.g. a verb occurrence such as a drop (docs/tcs/conjuring-schema-v0.4.md §2.14)"
},
"parameters": {
"type": "object",
"additionalProperties": true,
"description": "Optional event parameters"
}
}
}Verbatim JSON · Source: schemas/conjuring-schema-0.4.json/$defs/branch_condition