Skip to content

Commit

Permalink
feat(schema.json): update required extension section of porter manife…
Browse files Browse the repository at this point in the history
…st schema (#979)

Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice authored Apr 10, 2020
1 parent 7f81b1a commit b15c410
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/cnab/extensions/schema/io-cnab-docker.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "object",
"properties": {
"privileged": {
"description": "Option to set the --priviliged flag when running the Docker container",
"description": "Option to set the --privileged flag when running the Docker container",
"type": "boolean"
}
},
Expand Down
25 changes: 21 additions & 4 deletions pkg/porter/testdata/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,28 @@
"type": "array"
},
"required": {
"additionalItems": true,
"description": "Required extensions for this bundle",
"items": {
"anyOf": []
},
"type": "array"
"items": [
{
"properties": {
"docker": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"privileged": {
"description": "Option to set the --privileged flag when running the Docker container",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
],
"type": "array",
"uniqueItems": true
},
"tag": {
"description": "The tag to use when the bundle is published to an OCI registry",
Expand Down
23 changes: 20 additions & 3 deletions pkg/templates/templates/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,26 @@
"required": {
"description": "Required extensions for this bundle",
"type": "array",
"items": {
"anyOf": []
}
"items": [
{
"type": "object",
"properties": {
"docker": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"privileged": {
"description": "Option to set the --privileged flag when running the Docker container",
"type": "boolean"
}
},
"additionalProperties": false
}
}
}
],
"uniqueItems": true,
"additionalItems": true
},
"uninstall": {
"type": "array",
Expand Down

0 comments on commit b15c410

Please sign in to comment.