multiple reponses with different response bodies lead to unexpected result · Issue #412 · cjbooms/fabrikt · GitHub
More Web Proxy on the site http://driver.im/
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
The controller generators consider only the happy path, as seen for Spring here.
It would be a nice addition if we can support all the response cases.
I think first step could be to come up with a format for the generated code that will allow the user to respond with the different statuscode-reponsetype combinations.
Hi,
Currently I am stuck on an issues regarding responses for different status codes.
I have an api which tries to use ETags to return no response body, if the if-none-match http-header matches an ETag Header on the server.
Unfortunately the API generated by fabrikt does not reflect my intended use-case.
I have the following yaml (abbreviated):
The gradle script is configured to generate spring controllers with Jakarta for validation.
fabrikt generates the following code (abbreviated):
The generated response type is not nullable, although the response for http 403 must not return a body.
Is there any way to work around this problem?
The text was updated successfully, but these errors were encountered: