Skip to content

Commit

Permalink
Validate cbuild-set context node
Browse files Browse the repository at this point in the history
  • Loading branch information
grasci-arm authored Nov 14, 2023
1 parent 963c114 commit ab7ac46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
File renamed without changes.
8 changes: 7 additions & 1 deletion tools/projmgr/schemas/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
"minItems": 1,
"items": { "$ref": "#/definitions/BuildContext" }
},
"ArrayOfBuildContextWithProjectName": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/BuildContextWithProjectName" }
},
"ConditionIDType": {
"type": "string"
},
Expand Down Expand Up @@ -1120,7 +1126,7 @@
"type": "object",
"properties": {
"generated-by": { "type": "string", "description": "Tool name along with version information used to generate this application" },
"contexts": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of fully specified contexts" },
"contexts": { "$ref": "#/definitions/ArrayOfBuildContextWithProjectName", "description": "List of fully specified contexts" },
"compiler": { "type": "string", "description": "Selection of compiler used" }
},
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion tools/projmgr/src/ProjMgrYamlSchemaChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ bool ProjMgrYamlSchemaChecker::GetSchemaFile(string& schemaFile, const ProjMgrYa
schemaFileName = "cbuild-idx.schema.json";
break;
case ProjMgrYamlSchemaChecker::FileType::BUILDSET:
schemaFileName = "cbuildset.schema.json";
schemaFileName = "cbuild-set.schema.json";
break;
case ProjMgrYamlSchemaChecker::FileType::GENERATOR:
schemaFileName = "generator.schema.json";
Expand Down

0 comments on commit ab7ac46

Please sign in to comment.