OpenAPITools / OpenAPITools/openapi-generator
[BUG][JAVA][SPRING] Kebab case enum unsupported
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
If defining enum via #/components/schemas/kebab-case-enum-or-even-single-word-lowercase, java spring compile breaks with invalid generated EnumConverterConfiguration.java
openapi-generator version
6.3.0
OpenAPI declaration file content or url
kebab-case-enum:
enum:
- dashes
- lowercase
type: string
Generation Details
Run any spring generate CLI or build step
Steps to reproduce
Run any spring generate CLI or build step
Related issues/PRs
Suggest a fix
Fixed by https://github.com/OpenAPITools/openapi-generator/pull/14092
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run a Spring generation CLI or build step using the provided kebab-case enum OpenAPI declaration and inspect the generated EnumConverterConfiguration.java. Confirm that the generated Spring project compiles correctly; the issue states that the fix is already covered by pull request 14092.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 15/100