ash-project / ash_json_api

The JSON:API extension for the Ash Framework
https://hexdocs.pm/ash_json_api
MIT License
55 stars 41 forks source link

OpenAPI spec contains wrong response codes #185

Closed col closed 1 month ago

col commented 1 month ago

Describe the bug The generated OpenAPI spec defines POST responses with code 200. However, at runtime the JSON API returns 201 for the POST requests. When using the OpenAPI spec to generate a client this difference in response code breaks the response handling.

To Reproduce Compare the response code in the OpenAPI spec to the response code actually returned from a create / post action.

Expected behaviour The response codes in the OpenAPI spec should match the response codes returned from the API.

** Runtime