Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation misleading about coerce_form_params option #429

Open
fredplante opened this issue Sep 13, 2024 · 0 comments
Open

Documentation misleading about coerce_form_params option #429

fredplante opened this issue Sep 13, 2024 · 0 comments
Labels

Comments

@fredplante
Copy link

fredplante commented Sep 13, 2024

According to the documentation, coerce_form_params is used to coerce POST data encoded in an application/x-www-form-urlencoded body.

However, after examining the source code, it appears this may not be the actual behavior. The option is passed in build_openapi_parser_body_option and then forwarded in build_openapi_parser_option to the
OpenAPIParser::SchemaValidator::Options class.

I don't see any indication that this option is only applied to POST data encoded in application/x-www-form-urlencoded; it seems it's also applied to JSON request bodies, for example. Am I missing something?

@fredplante fredplante changed the title Documentation misleading about coerce_form_params option Documentation misleading about coerce_form_params option Sep 13, 2024
@ydah ydah added the document label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants