Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
lorennorman committed Nov 8, 2023
1 parent e8098c3 commit 2a8ab0f
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions boards/magic_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,36 @@
"type": "object",
"required": [ "name", "type" ],
"additionalProperties": false,
"oneOf": [
{ "properties": {
"isPin": { "type": "boolean", "const": true },
"name": { "type": "string" },
"type": { "type": "string" },
"pinName": { "type": "string" },
"mode": { "type": "string" },
"direction": { "type": "string" }
}},
{ "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 }
}}
]
"properties": {
"oneOf": [
{
"isPin": { "type": "boolean" },
"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 }
}
]
}
}
}
}
Expand Down

0 comments on commit 2a8ab0f

Please sign in to comment.