Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make endpoints which don't return anything yield NoContent
Relevant issue: OpenAPITools#9901 The haskell-http-client generator tries to generate a polymorphic return type for endpoints which don't return anything in the success case, but still produce content in other cases. This means that these endpoints hit a decoding error in the success case, because there is no content to decode. This changes the behaviour so that endpoints that don't return anything are *always* generated as returning NoContent, and never try to decode the response. This change is based on a similar one for the haskell-servant generator, which can be found at: OpenAPITools#9830 which resolved a similar issue for that generator.
- Loading branch information