oapi-codegen
oapi-codegen copied to clipboard
Fix response unmarshal order
The following changes were made to the genResponseUnmarshal function to fix #1329.
- Responses field is enumerated instead of typeDefinitions and the condition to suppress the generation of case statements for unsupported response has been changed.
- The order of the case statements has been changed so that the case statement for default status code is last of switch statement.