Merge branch 'feat/verif_no_additional_props_in_json_schema' into 'master'

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

Closes IDFGH-12892 and IDFGH-12893

See merge request espressif/esp-idf!31103
This commit is contained in:
Roland Dobai
2024-05-27 22:46:04 +08:00

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,9 +155,15 @@
"linux-arm64": { "linux-arm64": {
"$ref": "#/definitions/platformDownloadInfo" "$ref": "#/definitions/platformDownloadInfo"
}, },
"linux-armhf": {
"$ref": "#/definitions/platformDownloadInfo"
},
"macos": { "macos": {
"$ref": "#/definitions/platformDownloadInfo" "$ref": "#/definitions/platformDownloadInfo"
}, },
"macos-arm64": {
"$ref": "#/definitions/platformDownloadInfo"
},
"win32": { "win32": {
"$ref": "#/definitions/platformDownloadInfo" "$ref": "#/definitions/platformDownloadInfo"
}, },
@@ -170,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",
@@ -202,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",