Invalid request body validation for properties defined with capital letters
konradgKainos opened this issue · 0 comments
konradgKainos commented
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" }