Files
nana-story/contracts/schema/story-node.schema.json
T
2026-07-28 12:51:00 +08:00

46 lines
725 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "StoryNode",
"type": "object",
"required": [
"id",
"story_id",
"branch_id",
"parent_id",
"action_id",
"user_input",
"beats",
"delta",
"state_hash"
],
"properties": {
"id": {
"type": "string"
},
"story_id": {
"type": "string"
},
"branch_id": {
"type": "string"
},
"parent_id": {
"type": ["string", "null"]
},
"action_id": {
"type": "string"
},
"user_input": {
"type": "string"
},
"beats": {
"type": "array"
},
"delta": {
"type": "object"
},
"state_hash": {
"type": "string"
}
}
}