Skip to content

Commit

Permalink
fix: empty enum choice (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov authored May 22, 2024
1 parent 25035ec commit 0ca5770
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion internal/convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ func UserConfigSchema(v aiven.UserConfigSchema) (*types.UserConfigSchema, error)
e := make([]types.UserConfigSchemaEnumValue, 0, len(v.Enum))

for _, v := range v.Enum {
e = append(e, types.UserConfigSchemaEnumValue{Value: v})
if v != "" {
e = append(e, types.UserConfigSchemaEnumValue{Value: v})
}
}

// YAML uses scientific notation for floats, they won't change that
Expand Down
1 change: 0 additions & 1 deletion pkg/dist/integration_endpoint_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ external_kafka:
- string
enum:
- value: https
- value: ""
example: https
external_opensearch_logs:
type: object
Expand Down

0 comments on commit 0ca5770

Please sign in to comment.