diff --git a/pkg/porter/testdata/schema.json b/pkg/porter/testdata/schema.json index bc878baf0..f6054a561 100644 --- a/pkg/porter/testdata/schema.json +++ b/pkg/porter/testdata/schema.json @@ -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", @@ -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" } }, @@ -774,6 +778,7 @@ "type": "string" }, "schemaVersion": { + "default": "1.0.1", "description": "The version of the schema used in this file", "type": "string" }, diff --git a/pkg/schema/manifest.schema.json b/pkg/schema/manifest.schema.json index 741d6003c..a866409cb 100644 --- a/pkg/schema/manifest.schema.json +++ b/pkg/schema/manifest.schema.json @@ -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": [ @@ -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", @@ -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", diff --git a/tests/integration/testdata/schema/schema.json b/tests/integration/testdata/schema/schema.json index bc878baf0..f6054a561 100644 --- a/tests/integration/testdata/schema/schema.json +++ b/tests/integration/testdata/schema/schema.json @@ -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", @@ -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" } }, @@ -774,6 +778,7 @@ "type": "string" }, "schemaVersion": { + "default": "1.0.1", "description": "The version of the schema used in this file", "type": "string" },