Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot specify default values for 'object' type parameters #1738

Closed
cy-ddg opened this issue Aug 25, 2021 · 1 comment
Closed

Cannot specify default values for 'object' type parameters #1738

cy-ddg opened this issue Aug 25, 2021 · 1 comment
Labels
2 - 🍕 Pizza should be eaten daily bug Oops, sorry! cnab Related to the CNAB spec

Comments

@cy-ddg
Copy link

cy-ddg commented Aug 25, 2021

Using v1.0.0-alpha.2 I cannot specify a default value for object type parameters.

parameters:
  - name: values
    default: {}
    type: object

results in the following error when trying to install:

Error: 1 error occurred:
	* encountered error while validating parameter values: unable to load schema: json: unsupported type: map[interface {}]interface {}
parameters:
  - name: values
    default: ""
    type: object

results in the following error when trying to build the bundle:

Error: 1 error occurred:
	* encountered an error validating the default value  for parameter "values": type should be object, got string
@cy-ddg cy-ddg added the bug Oops, sorry! label Aug 25, 2021
@carolynvs carolynvs added 2 - 🍕 Pizza should be eaten daily cnab Related to the CNAB spec labels Aug 26, 2021
@carolynvs carolynvs added this to the 1.0 milestone Mar 11, 2022
@carolynvs carolynvs removed this from the 1.0 milestone Apr 28, 2022
@kichristensen
Copy link
Contributor

Fixed in #3225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - 🍕 Pizza should be eaten daily bug Oops, sorry! cnab Related to the CNAB spec
Projects
No open projects
Status: No status
Development

No branches or pull requests

3 participants