From ccc7fb0509b1bdddf208e6a4463dd882ddfa4b69 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Larsen Date: Fri, 16 Jul 2021 10:13:59 +0200 Subject: [PATCH] fix(schema): Allow any type for Parameter AllowedValues (#392) Signed-off-by: Mikkel Oscar Lyderik Larsen --- cloudformation/template.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cloudformation/template.go b/cloudformation/template.go index bf2e018201..20eeb739aa 100644 --- a/cloudformation/template.go +++ b/cloudformation/template.go @@ -25,17 +25,17 @@ type Template struct { } type Parameter struct { - Type string `json:"Type"` - Description string `json:"Description,omitempty"` - Default interface{} `json:"Default,omitempty"` - AllowedPattern string `json:"AllowedPattern,omitempty"` - AllowedValues []string `json:"AllowedValues,omitempty"` - ConstraintDescription string `json:"ConstraintDescription,omitempty"` - MaxLength int `json:"MaxLength,omitempty"` - MinLength int `json:"MinLength,omitempty"` - MaxValue float64 `json:"MaxValue,omitempty"` - MinValue float64 `json:"MinValue,omitempty"` - NoEcho bool `json:"NoEcho,omitempty"` + Type string `json:"Type"` + Description string `json:"Description,omitempty"` + Default interface{} `json:"Default,omitempty"` + AllowedPattern string `json:"AllowedPattern,omitempty"` + AllowedValues []interface{} `json:"AllowedValues,omitempty"` + ConstraintDescription string `json:"ConstraintDescription,omitempty"` + MaxLength int `json:"MaxLength,omitempty"` + MinLength int `json:"MinLength,omitempty"` + MaxValue float64 `json:"MaxValue,omitempty"` + MinValue float64 `json:"MinValue,omitempty"` + NoEcho bool `json:"NoEcho,omitempty"` } type Output struct {