open-api-spex / open_api_spex

Open API Specifications for Elixir Plug applications
Mozilla Public License 2.0
681 stars 177 forks source link

Use updated name for HTTP 422 ("Unprocessable Content") in JSON error response schema #598

Open arcanemachine opened 4 months ago

arcanemachine commented 4 months ago

The newest RFC on HTTP Semantics (RFC 9110) no longer uses the term Unprocessable Entity when describing HTTP 422, but now refers to it as Unprocessable Content.

This commit updates the default JSON error response schema to reflect this change.

Fixes #599

https://httpwg.org/specs/rfc9110.html#status.422

zorbash commented 3 months ago

Following the discussion in https://github.com/elixir-plug/plug/pull/1174 since this PR does not require any client changes we can consider it non-breaking.

zorbash commented 3 months ago

[Suggestion] Update the references to Unprocessable Entity in the examples directory and rebase.