oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Fix response unmarshal order

Open ShouheiNishi opened this issue 2 years ago • 0 comments

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.

ShouheiNishi avatar Oct 18 '23 06:10 ShouheiNishi