Skip to content

Commit

Permalink
try with "required"
Browse files Browse the repository at this point in the history
  • Loading branch information
lorennorman committed Nov 8, 2023
1 parent 2a8ab0f commit bcce9e2
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions boards/magic_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,36 +48,36 @@
"type": "object",
"required": [ "name", "type" ],
"additionalProperties": false,
"properties": {
"oneOf": [
{
"isPin": { "type": "boolean" },
"oneOf": [
{ "required": [ "isPin" ],
"properties": {
"isPin": { "type": "boolean", "const": true },
"name": { "type": "string" },
"type": { "type": "string" },
"pinName": { "type": "string" },
"mode": { "type": "string" },
"direction": { "type": "string" }
},
{
"isPixel": { "type": "boolean", "const": true }
},
{
"isI2C": { "type": "boolean", "const": true }
},
{
"isPWM": { "type": "boolean", "const": true }
},
{
"isServo": { "type": "boolean", "const": true }
},
{
"isUART": { "type": "boolean", "const": true }
},
{
"isDS18X20": { "type": "boolean", "const": true }
}
]
}
},
{ "properties": {
"isPixel": { "type": "boolean", "const": true }
}},
{ "properties": {
"isI2C": { "type": "boolean", "const": true }
}},
{ "properties": {
"isPWM": { "type": "boolean", "const": true }
}},
{ "properties": {
"isServo": { "type": "boolean", "const": true }
}},
{ "properties": {
"isUART": { "type": "boolean", "const": true }
}},
{ "properties": {
"isDS18X20": { "type": "boolean", "const": true }
}}
]
}
}
}
Expand Down

0 comments on commit bcce9e2

Please sign in to comment.