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

Parameter Validation doesn't handle empty array #1733

Closed
carolynvs opened this issue Aug 24, 2021 · 1 comment
Closed

Parameter Validation doesn't handle empty array #1733

carolynvs opened this issue Aug 24, 2021 · 1 comment
Labels
2 - 🍕 Pizza should be eaten daily bug Oops, sorry!

Comments

@carolynvs
Copy link
Member

The new version looks very good! The example above is working now. I've found one more problem though when trying to define an array parameter with a specific schema for the items:

parameters:
  - name: values
    type: array
    items:
      type: integer

This builds successfully but trying to install it with the following parameters:

{
  "parameters": [
    {
      "name": "values",
      "source": {
        "value": "[]"
      }
    }
  ]
}

I get the following error message:

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


Error: 1 error occurred:
	* container exit code: 1, message: <nil>

But besides that it is working pretty well. Good job!

Originally posted by @cy-ddg in #1459 (comment)

@carolynvs carolynvs added 2 - 🍕 Pizza should be eaten daily bug Oops, sorry! labels Aug 24, 2021
@carolynvs
Copy link
Member Author

Duplicate of #1738

@carolynvs carolynvs marked this as a duplicate of #1738 Aug 25, 2021
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!
Projects
None yet
Development

No branches or pull requests

1 participant