Skip to content

Backend: Support `options:` with inputs defining `default:` value

Problem

In Implement CI Components spec, args and fabricat... (!112296 - merged) we merged support for options: to be used for validating that the input value is one of the provided options.

However, options: is not currently a supported keyword in the spec:inputs entry and the implementation in !112296 (merged) for the Ci::Input::Arguments::Options only supports required inputs (without default: value).

We also need to support optional inputs with validation through options:

spec:
  inputs:
    env:
      options: [test, staging, production]
      default: test

Proposal

Implementation Table

Group Issue Link
backend #426596 (closed)
backend 👈 You are here
Edited by Mark Nuzzo
OSZAR »