Skip to content

fix: support string enum types in validation#1481

Merged
ernado merged 1 commit intoogen-go:mainfrom
nderjung:nderjung/fix/validate-string-enum-types
Sep 16, 2025
Merged

fix: support string enum types in validation#1481
ernado merged 1 commit intoogen-go:mainfrom
nderjung:nderjung/fix/validate-string-enum-types

Conversation

@nderjung
Copy link
Contributor

This commit fixes an issue where the validateEnumValues would pre-emptively fail if the enum type was set and its type was not an integer. Since string types are also supported, this update to the validation check ensures that this can be properly processed later.

@nderjung
Copy link
Contributor Author

nderjung commented Jun 25, 2025

I'll have a look at the failing CI tests.

Edit: done.

This commit fixes an issue where the `validateEnumValues` would
pre-emptively fail if the enum type was set and its type was not
an integer.  Since string types are also supported, this update
to the validation check ensures that this can be properly
processed later.

Signed-off-by: Alexander Jung <alex@nder.sh>
@nderjung nderjung force-pushed the nderjung/fix/validate-string-enum-types branch from 1c01ab3 to 95d50ee Compare June 28, 2025 20:43
@nderjung nderjung changed the title fix: Support string enum types in validation fix: support string enum types in validation Jun 28, 2025
@ernado ernado merged commit 4400363 into ogen-go:main Sep 16, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants