Skip to content
This repository has been 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 opened this issue Sep 5, 2019 · 0 comments

Comments

@konradgKainos
Copy link

konradgKainos commented Sep 5, 2019

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" }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant