You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First point: Is the "default" http status supported by CodegenResponse (and other wildcard like "3xx" that seems to be new with OAS3).
Other problem for JaxRS: @io.swagger.annotations.ApiResponse expect an int for the code.
We might need to update to Swagger core v3 first (see issue #27), because the @io.swagger.v3.oas.annotations.responses.ApiResponse annotation in the v3 core has a StringresponseCode member.
The text was updated successfully, but these errors were encountered:
jmini
added a commit
to jmini/openapi-experiments
that referenced
this issue
Jun 10, 2018
Given this OAS3 spec:
Inspired by the example from the Responses Object Example section in the official OpenAPI Specification.
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#responses-object-example
Related topic: it is now possible to work with
2xx
as http status (a wildcard that represent an http status in the200
-299
range)The generated code for jaxrs (
jersey2
library) looks wrong:First point: Is the
"default"
http status supported byCodegenResponse
(and other wildcard like"3xx"
that seems to be new with OAS3).Other problem for JaxRS:
@io.swagger.annotations.ApiResponse
expect an int for the code.We might need to update to Swagger core v3 first (see issue #27), because the
@io.swagger.v3.oas.annotations.responses.ApiResponse
annotation in the v3 core has aString
responseCode
member.The text was updated successfully, but these errors were encountered: