Skip to content

Object values can be accepted into string Params - intended behavior? #9612

@ckhordiasma

Description

@ckhordiasma

Hello, I recently discovered that we can specify object values for string params - for example

# pipelinerun param
- name: colors
  value:
    red: apple
    yellow: banana
# pipeline param definition
  - name: colors
    default: ""
    description: Color mapping
    type: string

Any task that uses the colors param will get the object value serialized as a JSON string. This is a convenient thing to have but I saw no mention of it in the documentation. Is this intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/documentationCategorizes issue or PR as related to documentation.kind/questionIssues or PRs that are questions around the project or a particular feature

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions