Skip to content

Commit

Permalink
fix some schema errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Feb 5, 2024
1 parent 8bcdbaa commit 3f6a4e6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 110 deletions.
76 changes: 21 additions & 55 deletions public/lint-schema.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"definitions": {
"LintProgram": {
"$ref": "#/definitions/LintExpression"
},
"LintExpression": {
"$ref": "#/definitions/LintExpression"
},
"LintConjunction": {
"$ref": "#/definitions/LintConjunction"
},
"LintBoolean": {
"type": "boolean"
},
"LintVariable": {
"type": "string"
},
"LintColor": {
"anyOf": [
{
Expand Down Expand Up @@ -281,22 +272,6 @@
"v"
]
},
"LintRef": {
"anyOf": [
{
"$ref": "#/definitions/LintVariable"
},
{
"$ref": "#/definitions/LintValue"
},
{
"$ref": "#/definitions/LintMathOps"
},
{
"$ref": "#/definitions/LintPairOps"
}
]
},
"LintComparisonBase": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -453,32 +428,6 @@
}
]
},
"LintQuantifier": {
"anyOf": [
{
"type": "object",
"properties": {
"all": {
"$ref": "#/definitions/LintQuantifierBase"
}
},
"required": [
"all"
]
},
{
"type": "object",
"properties": {
"exist": {
"$ref": "#/definitions/LintQuantifierBase"
}
},
"required": [
"exist"
]
}
]
},
"LintMapAlt": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -531,9 +480,7 @@
"$ref": "#/definitions/LintColorFunction"
}
]
}
},
"definitions": {
},
"LintExpression": {
"anyOf": [
{
Expand All @@ -550,6 +497,25 @@
}
]
},
"LintVariable": {
"type": "string"
},
"LintRef": {
"anyOf": [
{
"$ref": "#/definitions/LintVariable"
},
{
"$ref": "#/definitions/LintValue"
},
{
"$ref": "#/definitions/LintMathOps"
},
{
"$ref": "#/definitions/LintPairOps"
}
]
},
"LintConjunction": {
"anyOf": [
{
Expand Down
76 changes: 21 additions & 55 deletions src/lib/lint-language/lint-schema.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"definitions": {
"LintProgram": {
"$ref": "#/definitions/LintExpression"
},
"LintExpression": {
"$ref": "#/definitions/LintExpression"
},
"LintConjunction": {
"$ref": "#/definitions/LintConjunction"
},
"LintBoolean": {
"type": "boolean"
},
"LintVariable": {
"type": "string"
},
"LintColor": {
"anyOf": [
{
Expand Down Expand Up @@ -281,22 +272,6 @@
"v"
]
},
"LintRef": {
"anyOf": [
{
"$ref": "#/definitions/LintVariable"
},
{
"$ref": "#/definitions/LintValue"
},
{
"$ref": "#/definitions/LintMathOps"
},
{
"$ref": "#/definitions/LintPairOps"
}
]
},
"LintComparisonBase": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -453,32 +428,6 @@
}
]
},
"LintQuantifier": {
"anyOf": [
{
"type": "object",
"properties": {
"all": {
"$ref": "#/definitions/LintQuantifierBase"
}
},
"required": [
"all"
]
},
{
"type": "object",
"properties": {
"exist": {
"$ref": "#/definitions/LintQuantifierBase"
}
},
"required": [
"exist"
]
}
]
},
"LintMapAlt": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -531,9 +480,7 @@
"$ref": "#/definitions/LintColorFunction"
}
]
}
},
"definitions": {
},
"LintExpression": {
"anyOf": [
{
Expand All @@ -550,6 +497,25 @@
}
]
},
"LintVariable": {
"type": "string"
},
"LintRef": {
"anyOf": [
{
"$ref": "#/definitions/LintVariable"
},
{
"$ref": "#/definitions/LintValue"
},
{
"$ref": "#/definitions/LintMathOps"
},
{
"$ref": "#/definitions/LintPairOps"
}
]
},
"LintConjunction": {
"anyOf": [
{
Expand Down

0 comments on commit 3f6a4e6

Please sign in to comment.