Skip to content

Commit

Permalink
feat(metaschema): Check for definition or type (or anyOf, which might…
Browse files Browse the repository at this point in the history
… have types)
  • Loading branch information
effigies committed Jun 13, 2024
1 parent 0e6e226 commit 7f72c37
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/metaschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,18 @@
"type": "number"
}
},
"required": ["name", "display_name", "description"],
"anyOf": [
{ "required": ["name", "display_name", "description", "type"] },
{
"required": [
"name",
"display_name",
"description",
"definition"
]
},
{ "required": ["name", "display_name", "description", "anyOf"] }
],
"additionalProperties": false
}
},
Expand Down

0 comments on commit 7f72c37

Please sign in to comment.