tektoncd/pipeline

Add support for enum in object params

開放

#7,568 建立於 2024年1月16日

 (0 則留言) (1 個反應) (1 位負責人)Go (1,943 個分叉)auto 404
area/apihelp wantedkind/feature

倉庫指標

星標
 (9,013 顆星)
PR 合併指標
 (平均合併 9天 3小時) (30 天內合併 137 個 PR)

描述

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"

貢獻者指南