Skip to content

Commit

Permalink
try without oneOf for a sec
Browse files Browse the repository at this point in the history
  • Loading branch information
lorennorman committed Nov 8, 2023
1 parent eceb198 commit 0f15654
Showing 1 changed file with 10 additions and 50 deletions.
60 changes: 10 additions & 50 deletions boards/magic_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,56 +46,16 @@
"type": "array",
"items": {
"type": "object",
"required": [ "name", "type" ],
"oneOf": [
{ "required": [ "isPin" ],
"properties": {
"isPin": { "type": "boolean", "const": true },
"name": { "type": "string" },
"type": { "type": "string" },
"pinName": { "type": "string" },
"mode": { "type": "string" },
"direction": { "type": "string" }
},
"additionalProperties": false
},
{ "required": [ "isPixel" ],
"properties": {
"isPixel": { "type": "boolean", "const": true }
},
"additionalProperties": false
},
{ "required": [ "isI2C" ],
"properties": {
"isI2C": { "type": "boolean", "const": true }
},
"additionalProperties": false
},
{ "required": [ "isPWM" ],
"properties": {
"isPWM": { "type": "boolean", "const": true }
},
"additionalProperties": false
},
{ "required": [ "isServo" ],
"properties": {
"isServo": { "type": "boolean", "const": true }
},
"additionalProperties": false
},
{ "required": [ "isUART" ],
"properties": {
"isUART": { "type": "boolean", "const": true }
},
"additionalProperties": false
},
{ "required": [ "isDS18X20" ],
"properties": {
"isDS18X20": { "type": "boolean", "const": true }
},
"additionalProperties": false
}
]
"required": [ "name", "type", "isPin" ],
"properties": {
"isPin": { "type": "boolean", "const": true },
"name": { "type": "string" },
"type": { "type": "string" },
"pinName": { "type": "string" },
"mode": { "type": "string" },
"direction": { "type": "string" }
},
"additionalProperties": false
}
}
}
Expand Down

0 comments on commit 0f15654

Please sign in to comment.