Skip to content

Conversation

@PerfectChaos
Copy link
Collaborator

When grabbing the types of deployment parameters from the values.schema.json, we retrieve the overall array object where there is an array, and thus get "array" as the type. This fix checks for an "items" entry in the schema and extracts the type from that (defaulting to string if not provided, as with objects).

For now this only supports cases where all values have the same type - where there are multiple values, we default to string and display the usual warning.

Also, extend the basic CNF test's example mapping file to include a deployment parameter in an array and test that the resultant schema correctly includes the type.

@PerfectChaos PerfectChaos merged commit bd1274f into add-aosm-extension Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants