feat(tools): json schema verifies that no additional properties are used

Closes https://github.com/espressif/esp-idf/issues/13853
Closes https://github.com/espressif/esp-idf/pull/13854
This commit is contained in:
Marek Fiala
2024-05-27 16:10:46 +02:00
parent 71b5277e81
commit 55112978fd

View File

@@ -23,6 +23,7 @@
"toolInfo": { "toolInfo": {
"type": "object", "type": "object",
"description": "Information about one tool", "description": "Information about one tool",
"additionalProperties": false,
"properties": { "properties": {
"name" : { "name" : {
"description": "Tool name (used as a directory name)", "description": "Tool name (used as a directory name)",
@@ -131,6 +132,7 @@
}, },
"versionInfo": { "versionInfo": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"name" : { "name" : {
"description": "Version name (used as a directory name)", "description": "Version name (used as a directory name)",
@@ -153,6 +155,9 @@
"linux-arm64": { "linux-arm64": {
"$ref": "#/definitions/platformDownloadInfo" "$ref": "#/definitions/platformDownloadInfo"
}, },
"linux-armhf": {
"$ref": "#/definitions/platformDownloadInfo"
},
"macos": { "macos": {
"$ref": "#/definitions/platformDownloadInfo" "$ref": "#/definitions/platformDownloadInfo"
}, },
@@ -173,6 +178,7 @@
"platformDownloadInfo": { "platformDownloadInfo": {
"description": "Information about download artifact for one platform", "description": "Information about download artifact for one platform",
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"sha256": { "sha256": {
"type": "string", "type": "string",
@@ -205,6 +211,7 @@
"platformOverrideInfo": { "platformOverrideInfo": {
"description": "Platform-specific values which override the defaults", "description": "Platform-specific values which override the defaults",
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"platforms": { "platforms": {
"description": "List of platforms to which this override applies", "description": "List of platforms to which this override applies",