Skip to content

feat: support custom error message for number-typed coder parameters #12192

Closed
@mtojek

Description

@mtojek

The goal of this issue is to expand validation rules to support custom error message for number-typed coder parameters. So far, an error message have been tightly coupled with string-type param and regex. The idea is to make it also available for numbers.

data "coder_parameter" "instances" {
  name        = "Instances"
  type        = "number"
  description = "Number of compute instances"
  validation {
    min       = 1
    max       = 8
    monotonic = "increasing"
    error = "Number of compute instances must be between {min} and {max}."
  }
}

Battle plan:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions