Skip to content

Documentation misleading about coerce_form_params option #429

@fredplante

Description

@fredplante

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions