You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
fredplante
changed the title
Documentation misleading about coerce_form_params option
Documentation misleading about coerce_form_params option
Sep 13, 2024
According to the documentation,
coerce_form_params
is used to coerce POST data encoded in anapplication/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?The text was updated successfully, but these errors were encountered: