Skip to content

Rich Parameter validation is skipped if min or max is 0. #7582

Closed
@spikecurtis

Description

@spikecurtis

If you set validation.min or validation.max to 0 in a rich parameter, we skip validation.

This makes it impossible to correctly enforce a parameter range where 0 is the min or max, e.g. 0-9.

Spotted during a code read:

func validationEnabled(param TemplateVersionParameter) bool {

Unfortunately this needs to be resolved at the protobuf / data persistence layer, since we only store the min and max, and not whether either or both were explicitly set in the terraform.

cc @mtojek

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions