We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02af5ea commit 6cdb775Copy full SHA for 6cdb775
provider/parameter_test.go
@@ -527,6 +527,20 @@ data "coder_parameter" "region" {
527
}
528
`,
529
ExpectError: regexp.MustCompile("is more than the maximum"),
530
+ }, {
531
+ Name: "NumberValidation_CustomError",
532
+ Config: `
533
+ data "coder_parameter" "region" {
534
+ name = "Region"
535
+ type = "number"
536
+ default = 5
537
+ validation {
538
+ max = 3
539
+ error = "foobar"
540
+ }
541
542
+ `,
543
+ ExpectError: regexp.MustCompile("foobar"),
544
}, {
545
Name: "NumberValidation_NotInRange",
546
Config: `
0 commit comments