Skip to content

fix: generate Java enum arrays as lists - #5

Merged
mikipalet merged 1 commit into
mainfrom
fix/enum-set-generation
Sep 22, 2026
Merged

mikipalet merged 1 commit into
mainfrom
fix/enum-set-generation

Conversation

@mikipalet

Copy link
Copy Markdown
Member

OpenAPI Generator 7.23's native Java client fails to compile a unique array of inline enums: the generated add-item helper constructs a string set for enum values. Normalize these arrays to lists for Java generation while retaining their enum values; server-side uniqueness validation remains unchanged.

Validation: minimal generated-client compile reproduced the failure before normalization and passes after; full current API spec generates and compiles with the companion redirect-alias spec fix. Two Python regression tests pass and now run in CI.

@mikipalet
mikipalet merged commit e9821df into main Sep 22, 2026
1 check passed
@mikipalet
mikipalet deleted the fix/enum-set-generation branch September 22, 2026 20:07
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.

1 participant