tektoncd/pipeline

Add support for enum in object params

オープン

#7,568 opened on 2024/01/16

 (0 件のコメント) (1 件のリアクション) (1 人の担当者)Go (1,943 件のフォーク)auto 404
area/apihelp wantedkind/feature

Repository metrics

Stars
 (9,013 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Feature request

It should be possible to use enum in parameters of type object on string fields.

Use case

An example of usage would be:

    params:
    - name: go
      description: >-
        Golang options, such as flags, …
      type: object
      properties:
        version:
          type: string
          enum: ["1.19", "1.20", "1.21", "1.22"]
        GOFLAGS: {type: string}
        GOOS: {type: string}
        GOARCH: {type: string}
        CGO_ENABLED: {type: string}
      default:
        version: "1.21"
        GOFLAGS: "-v"
        GOOS: ""
        GOARCH: ""
        CGO_ENABLED: "0"

コントリビューターガイド