Skip to content

Commit ddff3c4

Browse files
authored
Fix data model JSON Schema (#982)
Fix JSON Schema
1 parent fca9873 commit ddff3c4

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

spec/data-model/message.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"function": { "$ref": "#/$defs/function" },
5454
"attributes": { "$ref": "#/$defs/attributes" }
5555
},
56-
"oneOf": [
56+
"anyOf": [
5757
{ "required": ["type", "arg"] },
5858
{ "required": ["type", "function"] }
5959
]
@@ -63,7 +63,7 @@
6363
"type": "object",
6464
"properties": {
6565
"type": { "const": "markup" },
66-
"kind": { "oneOf": ["open", "standalone", "close"] },
66+
"kind": { "enum": ["open", "standalone", "close"] },
6767
"name": { "type": "string" },
6868
"options": { "$ref": "#/$defs/options" },
6969
"attributes": { "$ref": "#/$defs/attributes" }
@@ -87,7 +87,17 @@
8787
"properties": {
8888
"type": { "const": "input" },
8989
"name": { "type": "string" },
90-
"value": { "$ref": "#/$defs/variable-expression" }
90+
"value": {
91+
"allOf": [
92+
{ "$ref": "#/$defs/expression" },
93+
{
94+
"properties": {
95+
"arg": { "$ref": "#/$defs/variable" }
96+
},
97+
"required": ["arg"]
98+
}
99+
]
100+
}
91101
},
92102
"required": ["type", "name", "value"]
93103
},

0 commit comments

Comments
 (0)