Array type CI inputs are now available, but users receive an error when trying to publish a component using array type inputs with a default. This is because the JSON schema validation on the inputs:default field for Ci::Catalog::Resources::Component does not allow arrays
The Solution
Update the JSON schema validation to accept arrays
Edited
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Hi @marknuzzo@dhershkovitch, I have some good news and some bad news. The good news is that array type inputs have been merged. Yay! But…the bad news is I missed an update to a JSON schema validation, so users trying to publish a component with an array type input that has a default value will get an error If only our CI JSON schemas had a single source of truth…well, maybe some day
I've made this issue to fix the bug, and I'll try to get a fix merged today
Will this also fix GitLab pipelines that include a component with an array as input?
I am getting the following error when the GitLab pipeline is ran:
This GitLab CI configuration is invalid: `code.douglasparker.dev/douglasparker/test-component/echo@~latest`: header:spec:inputs:test input type unknown value: array.
Mark Nuzzochanged title from Add array to CI component inputs JSON schema validation to Backend: Add array to CI component inputs JSON schema validation
changed title from Add array to CI component inputs JSON schema validation to Backend: Add array to CI component inputs JSON schema validation