Skip to content

Commit 858a319

Browse files
Adjust json schema to use LeftAssoc and RightAssoc (#3548)
Follows the change made in `kore-rpc-types` replacing `MultiApp` by `LeftAssoc` and `RightAssoc`. Co-authored-by: rv-jenkins <[email protected]>
1 parent 5dc023d commit 858a319

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/main/json/kore-schema.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"Ceil", "Floor", "Equals", "In",
4141
"Next", "Rewrites",
4242
"DV",
43-
"MultiOr", "MultiApp"
43+
"MultiOr", "LeftAssoc", "RightAssoc"
4444
]
4545
}
4646
},
@@ -140,7 +140,11 @@
140140
"then": { "$ref": "#/definitions/KoreJSONMultiOr" }
141141
},
142142
{
143-
"if": {"properties": {"tag": { "const": "MultiApp" } } },
143+
"if": {"properties": {"tag": { "const": "LeftAssoc" } } },
144+
"then": { "$ref": "#/definitions/KoreJSONMultiApp" }
145+
},
146+
{
147+
"if": {"properties": {"tag": { "const": "RightAssoc" } } },
144148
"then": { "$ref": "#/definitions/KoreJSONMultiApp" }
145149
}
146150
]
@@ -442,10 +446,6 @@
442446
"KoreJSONMultiApp": {
443447
"type": "object",
444448
"properties": {
445-
"assoc": {
446-
"type": "string",
447-
"enum": [ "Left", "Right" ]
448-
},
449449
"symbol": {
450450
"type": "string",
451451
"pattern": "^\\\\?[a-zA-Z][a-zA-Z0-9-']*$"
@@ -466,7 +466,6 @@
466466
}
467467
},
468468
"required": [
469-
"assoc",
470469
"symbol",
471470
"sorts",
472471
"argss"

0 commit comments

Comments
 (0)