Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Invalid request body validation for properties defined with capital letters #590

Open
@konradgKainos

Description

@konradgKainos

The is specific scenario when request body validation fails when properties are named with capital letters. I assume it should accept only json with capital letter property but accepts as follows:

  • capital letter property
  • lower case property
  • capital and lower case property in the same request

Example:
For endpoint
parameters: - in: body name: body schema: $ref: '#/definitions/MyRequest'

With definition
definitions: MyRequest: type: object properties: IBAN: type: string required: - IBAN

It accepts following jsons:
{ "IBAN": "1234567889" }

{ "iban": "1234567889" }

{ "iban": "1234567889", "IBAN": "1234567889" }

Acceptance criteria:

  • Only capital letter json property is accepted as a valid request, other should result in bad_request.

{ "IBAN": "1234567889" }

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