Fixed outer enum issue on jaxrs-resteasy and jaxrs-resteasy-eap#10533
Fixed outer enum issue on jaxrs-resteasy and jaxrs-resteasy-eap#10533GabriRuflex wants to merge 2 commits into
Conversation
|
@HugoMario Hi Hugo, could you please take a look on this? Thanks a lot! |
|
Hi there, what is the status of this PR? i think this PR open for about 2 years already |
e181bab to
413088e
Compare
|
Hi maintainers 👋 This PR has now been open for almost 6 years (since October 2020), so here's a fresh status update: The bug is evident, trivially reproducible and blocking. Any Swagger spec that defines a top-level (outer) enum currently produces broken code with these generators — you can reproduce it with a three-line definition: OrderStatus:
type: string
enum: [placed, approved, delivered]
The fix is the missing half of code that is already on Current state of the PR:
Given that the change is two mustache templates plus tests, aligns these generators with what |
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.3.0.0branch for changes related to OpenAPI spec 3.0. Default:master.Description of the PR
Ping
@HugoMario