-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect dataType output when using a $ref to an enum as the schema in the requestBody #95
Comments
devplayer0
added a commit
to devplayer0/swagger-codegen-generators
that referenced
this issue
Jun 12, 2018
This makes the behaviour of `fromRequestBody()` similar to that of `fromParameter()` (by replacing most of the existing code with code from `fromParameter()`) in order to fix a number of issues. Notably this includes a lack of handling for enums, both as references (as can be seen in swagger-api#95) and inline. Also: - Add `postProcessRequestBody()` hook for code generators - Fix swagger-api#95
devplayer0
added a commit
to devplayer0/swagger-codegen-generators
that referenced
this issue
Jun 15, 2018
This makes the behaviour of `fromRequestBody()` similar to that of `fromParameter()` (by replacing most of the existing code with code from `fromParameter()`) in order to fix a number of issues. Notably this includes a lack of handling for enums, both as references (as can be seen in swagger-api#95) and inline. Also: - Add `postProcessRequestBody()` hook for code generators - Fix swagger-api#95
devplayer0
added a commit
to devplayer0/swagger-codegen-generators
that referenced
this issue
Jun 29, 2018
This makes the behaviour of `fromRequestBody()` similar to that of `fromParameter()` (by replacing most of the existing code with code from `fromParameter()`) in order to fix a number of issues. Notably this includes a lack of handling for enums, both as references (as can be seen in swagger-api#95) and inline. Also: - Add `postProcessRequestBody()` hook for code generators - Fix swagger-api#95
devplayer0
added a commit
to devplayer0/swagger-codegen-generators
that referenced
this issue
Jul 4, 2018
This makes the behaviour of `fromRequestBody()` similar to that of `fromParameter()` (by replacing most of the existing code with code from `fromParameter()`) in order to fix a number of issues. Notably this includes a lack of handling for enums, both as references (as can be seen in swagger-api#95) and inline. Also: - Add `postProcessRequestBody()` hook for code generators - Fix swagger-api#95
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The snippet below from an OpenAPI document shows a parameter in path and request body whose schemas are both references to an enum
StuffType
:This is the method generated by
jaxrs-spec
:While the generated method uses
StuffType
as the type for the path parameter,String
is used as the type forbody
.The text was updated successfully, but these errors were encountered: