Skip to content

Commit

Permalink
fix: support PARAMETER_TYPE_TEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Nov 29, 2024
1 parent 57ca9ad commit 0e61182
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/types/entities/plugin_entities/model_declaration.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const (
PARAMETER_TYPE_INT ModelParameterType = "int"
PARAMETER_TYPE_STRING ModelParameterType = "string"
PARAMETER_TYPE_BOOLEAN ModelParameterType = "boolean"
PARAMETER_TYPE_TEXT ModelParameterType = "text"
)

func isModelParameterType(fl validator.FieldLevel) bool {
Expand All @@ -73,7 +74,8 @@ func isModelParameterType(fl validator.FieldLevel) bool {
case string(PARAMETER_TYPE_FLOAT),
string(PARAMETER_TYPE_INT),
string(PARAMETER_TYPE_STRING),
string(PARAMETER_TYPE_BOOLEAN):
string(PARAMETER_TYPE_BOOLEAN),
string(PARAMETER_TYPE_TEXT):
return true
}
return false
Expand Down

0 comments on commit 0e61182

Please sign in to comment.