Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flowpipe pipeline param default value compatibility test with the declared type. #441

Closed
vhadianto opened this issue Aug 14, 2024 · 0 comments

Comments

@vhadianto
Copy link
Contributor

This declaration should pass:

  param "actions" {
    description = "A map of actions, if approvers are set these will be offered as options to select, else the one matching the default_action will be used."
    type = map(object({
      label         = string
      value         = string
      style         = string
      pipeline_ref  = any
      pipeline_args = any
      success_msg   = string
      error_msg     = string
    }))
    default = {
      "skip" = {
        label         = "Skip"
        value         = "skip"
        style         = "info"
        pipeline_ref  = pipeline.optional_message
        pipeline_args = {
          notifier = "default"
          send     = false
          text     = "Skipped item."
        }
        success_msg   = ""
        error_msg     = ""
      }
    }
  }

But it fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant