acacode / swagger-typescript-api

Generate the API Client for Fetch or Axios from an OpenAPI Specification
MIT License
3.38k stars 361 forks source link

Format not generated when successful response type is void #977

Open Eunkyung-Son opened 2 weeks ago

Eunkyung-Son commented 2 weeks ago

The format is generated based on the media type of the successful response. If the type of the successful response is void and the error response is JSON, this results in a format issue where the error is returned as null in the response because the format is created based on the successful response type.