Skip to content

Commit

Permalink
Merge pull request #2665 from carolynvs/schema-fixes
Browse files Browse the repository at this point in the history
Updates to bundle schema v1.0.1
  • Loading branch information
carolynvs committed Mar 29, 2023
2 parents 763c537 + ec4e3cc commit c8d99b7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
7 changes: 6 additions & 1 deletion pkg/porter/testdata/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"type": "array"
},
"bundle": {
"description": "The defintion of a bundle reference",
"description": "The definition of a bundle reference",
"properties": {
"reference": {
"description": "The full bundle reference for the dependency in the format REGISTRY/NAME:TAG",
Expand Down Expand Up @@ -99,6 +99,10 @@
"type": "string"
},
"parameters": {
"additionalProperties": {
"type": "string"
},
"description": "Map of parameter names to a parameter source, such as bundle.parameters.PARAM, bundle.dependencies.DEP.outputs.OUTPUT, or bundle.credentials.CRED",
"type": "object"
}
},
Expand Down Expand Up @@ -774,6 +778,7 @@
"type": "string"
},
"schemaVersion": {
"default": "1.0.1",
"description": "The version of the schema used in this file",
"type": "string"
},
Expand Down
11 changes: 8 additions & 3 deletions pkg/schema/manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@
"$ref": "#/definitions/bundle"
},
"parameters": {
"type": "object"
"description": "Map of parameter names to a parameter source, such as bundle.parameters.PARAM, bundle.dependencies.DEP.outputs.OUTPUT, or bundle.credentials.CRED",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
Expand All @@ -184,7 +188,7 @@
"type": "object"
},
"bundle": {
"description": "The defintion of a bundle reference",
"description": "The definition of a bundle reference",
"properties": {
"reference": {
"description": "The full bundle reference for the dependency in the format REGISTRY/NAME:TAG",
Expand Down Expand Up @@ -291,7 +295,8 @@
},
"schemaVersion": {
"description": "The version of the schema used in this file",
"type": "string"
"type": "string",
"default": "1.0.1"
},
"credentials": {
"type": "array",
Expand Down
7 changes: 6 additions & 1 deletion tests/integration/testdata/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"type": "array"
},
"bundle": {
"description": "The defintion of a bundle reference",
"description": "The definition of a bundle reference",
"properties": {
"reference": {
"description": "The full bundle reference for the dependency in the format REGISTRY/NAME:TAG",
Expand Down Expand Up @@ -99,6 +99,10 @@
"type": "string"
},
"parameters": {
"additionalProperties": {
"type": "string"
},
"description": "Map of parameter names to a parameter source, such as bundle.parameters.PARAM, bundle.dependencies.DEP.outputs.OUTPUT, or bundle.credentials.CRED",
"type": "object"
}
},
Expand Down Expand Up @@ -774,6 +778,7 @@
"type": "string"
},
"schemaVersion": {
"default": "1.0.1",
"description": "The version of the schema used in this file",
"type": "string"
},
Expand Down

0 comments on commit c8d99b7

Please sign in to comment.