Skip to content

Add support for platform properties introduced for pluggable discovery #267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move the "booleanString" schema to the general definitions file
This is an enum that contains the supported string representations of Boolean values. It was previously used only by the
boards.txt schema, and so was hosted in its file, but now there is a need for it in the platform.txt specification as
well, so it goes in the file that holds the shared definitions.
  • Loading branch information
per1234 committed Sep 2, 2021
commit 7c18e57d5249198d095b86441e17fa9c658d2879
13 changes: 4 additions & 9 deletions etc/schemas/arduino-boards-txt-definitions-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@
"type": "string"
},
{
"$ref": "#/definitions/enumObjects/booleanString"
"$ref": "general-definitions-schema.json#/definitions/enumObjects/booleanString"
}
]
}
Expand Down Expand Up @@ -814,7 +814,7 @@
"type": "string"
},
{
"$ref": "#/definitions/enumObjects/booleanString"
"$ref": "general-definitions-schema.json#/definitions/enumObjects/booleanString"
}
]
}
Expand Down Expand Up @@ -1016,7 +1016,7 @@
"type": "string"
},
{
"$ref": "#/definitions/enumObjects/booleanString"
"$ref": "general-definitions-schema.json#/definitions/enumObjects/booleanString"
}
]
}
Expand Down Expand Up @@ -1057,7 +1057,7 @@
"type": "string"
},
{
"$ref": "#/definitions/enumObjects/booleanString"
"$ref": "general-definitions-schema.json#/definitions/enumObjects/booleanString"
}
]
}
Expand Down Expand Up @@ -1215,11 +1215,6 @@
}
}
}
},
"enumObjects": {
"booleanString": {
"enum": ["true", "false"]
}
}
}
}
5 changes: 5 additions & 0 deletions etc/schemas/general-definitions-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"pattern": "^[aA][rR][dD][uU][iI][nN][oO].*$"
}
}
},
"enumObjects": {
"booleanString": {
"enum": ["true", "false"]
}
}
}
}
18 changes: 9 additions & 9 deletions internal/rule/schema/schemadata/bindata.go
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ var _arduinoBoardsTxtDefinitionsSchemaJson = []byte(`{
"type": "string"
},
{
"$ref": "#/definitions/enumObjects/booleanString"
"$ref": "general-definitions-schema.json#/definitions/enumObjects/booleanString"
}
]
}
Expand Down Expand Up @@ -889,7 +889,7 @@ var _arduinoBoardsTxtDefinitionsSchemaJson = []byte(`{
"type": "string"
},
{
"$ref": "#/definitions/enumObjects/booleanString"
"$ref": "general-definitions-schema.json#/definitions/enumObjects/booleanString"
}
]
}
Expand Down Expand Up @@ -1091,7 +1091,7 @@ var _arduinoBoardsTxtDefinitionsSchemaJson = []byte(`{
"type": "string"
},
{
"$ref": "#/definitions/enumObjects/booleanString"
"$ref": "general-definitions-schema.json#/definitions/enumObjects/booleanString"
}
]
}
Expand Down Expand Up @@ -1132,7 +1132,7 @@ var _arduinoBoardsTxtDefinitionsSchemaJson = []byte(`{
"type": "string"
},
{
"$ref": "#/definitions/enumObjects/booleanString"
"$ref": "general-definitions-schema.json#/definitions/enumObjects/booleanString"
}
]
}
Expand Down Expand Up @@ -1290,11 +1290,6 @@ var _arduinoBoardsTxtDefinitionsSchemaJson = []byte(`{
}
}
}
},
"enumObjects": {
"booleanString": {
"enum": ["true", "false"]
}
}
}
}
Expand Down Expand Up @@ -6175,6 +6170,11 @@ var _generalDefinitionsSchemaJson = []byte(`{
"pattern": "^[aA][rR][dD][uU][iI][nN][oO].*$"
}
}
},
"enumObjects": {
"booleanString": {
"enum": ["true", "false"]
}
}
}
}
Expand Down