Skip to content

Commit

Permalink
put required into oneof
Browse files Browse the repository at this point in the history
  • Loading branch information
lorennorman committed Nov 8, 2023
1 parent 0f15654 commit 0723269
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion boards/magic_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
"type": "array",
"items": {
"type": "object",
"required": [ "name", "type", "isPin" ],
"required": [ "name", "type" ],
"oneOf": [
{ "required": [ "isPin" ] }
],
"properties": {
"isPin": { "type": "boolean", "const": true },
"name": { "type": "string" },
Expand Down

0 comments on commit 0723269

Please sign in to comment.