Skip to content
This repository was archived by the owner on Aug 17, 2017. It is now read-only.

handle UnpermittedParameters as bad request#141

Open
marshallshen wants to merge 1 commit intorails:masterfrom
marshallshen:handle_unpermitted_parameters
Open

handle UnpermittedParameters as bad request#141
marshallshen wants to merge 1 commit intorails:masterfrom
marshallshen:handle_unpermitted_parameters

Conversation

@marshallshen
Copy link
Copy Markdown

Should we rescue UnpermittedParameters the same way as ParameterMissing? It is cleaner to return as bad request with a meaningful response body rather than raise error in the system.

It shines when you try to build API for services using strong parameters.

@chikamichi
Copy link
Copy Markdown
Contributor

Hi,

This PR never got any feedback. Would such a change make sense to the maintainers? It could provide more consistency IMO.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants