Skip to content

Commit

Permalink
fix(metaschema): Require type, anyOf or definition (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 25, 2024
1 parent 8ea817b commit df1559a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/metaschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"patternProperties": {
"^[a-zA-Z0-9_]+$": {
"allOf": [
{ "$ref": "#/definitions/termTypes/JSONSchema" },
{ "$ref": "https://json-schema.org/draft/2020-12/schema#" },
{ "$ref": "#/definitions/termTypes/general" },
{ "$ref": "#/definitions/termTypes/nameValue" },
{
Expand All @@ -92,7 +92,12 @@
"format": { "$ref": "#/definitions/enums/formats" },
"unit": { "type": "string" }
}
}
}
],
"anyOf": [
{ "required": ["type"] },
{ "required": ["anyOf"] },
{ "required": ["definition"] }
],
"unevaluatedProperties": false
}
Expand Down

0 comments on commit df1559a

Please sign in to comment.