Skip to content

introduce UNPROCESSABLE_ENTITY_STATUS for Rack compatibility and remove deprecation warnings#16

Open
arsgal wants to merge 1 commit intosanger:masterfrom
arsgal:fix/issue-7-unprocessable-entity-to-content
Open

introduce UNPROCESSABLE_ENTITY_STATUS for Rack compatibility and remove deprecation warnings#16
arsgal wants to merge 1 commit intosanger:masterfrom
arsgal:fix/issue-7-unprocessable-entity-to-content

Conversation

@arsgal
Copy link
Copy Markdown

@arsgal arsgal commented Apr 24, 2026

Summary

Fixes sanger/jsonapi-resources#7 by replacing deprecated :unprocessable_entity with a Rack-compatible constant.

Introduces JSONAPI::UNPROCESSABLE_ENTITY_STATUS to support both Rack 2.x and 3.x:

-Uses :unprocessable_content on newer Rack versions
-Falls back to :unprocessable_entity for older versions

This removes deprecation warnings in validation/save-failed flows and updates tests accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Y25-584-1 - Update instances of unprocessable_entity to conform to rack

1 participant