Skip to content

x-www-form-urlencoded validation does not work properly #567

@orensolo

Description

@orensolo

Hi,
There are a few bugs in x-www-form-urlencoded validation (specifically in x-www-form-urlencoded decoder) :

  1. The validation only accepts schema with primitives or array that contains primitives. While according to the RFC complex objects are allowed (for example, I am using3gpp access token (https://www.3gpp.org/ftp/Specs/archive/OpenAPI/Rel-15/TS29510_Nnrf_AccessToken.yaml)
  2. The decoder fills in properties that were not included in the request with their nil values.
    for example, even If the request does not contain an array and this array is not required, then the decoder adds it with nil value. As a result, the validation fails on minimum required items.

Thanks,
Oren

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions