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 Jul 11, 2024
1 parent f50caa5 commit 2e58636
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 2e58636

Please sign in to comment.