You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If multiple required fields are omitted from the request body, only the first is reported missing in the error message.
To Reproduce
Make an empty object PUT request to /pet with this defintion
paths:
/pet:
put:
tags:
- pet
summary: Update an existing pet
description: Update an existing pet by Id
operationId: updatePet
requestBody:
description: Update an existent pet in the store
content:
application/json:
schema:
required:
- name
- color
type: object
properties:
name:
type: string
example: doggie
color:
type: string
example: brown
Actual behavior
Error: must have required property 'name'
Expected behavior
Errors: must have required property 'name' and must have required property 'color'
The text was updated successfully, but these errors were encountered:
Describe the bug
If multiple required fields are omitted from the request body, only the first is reported missing in the error message.
To Reproduce
Make an empty object PUT request to /pet with this defintion
Actual behavior
Error:
must have required property 'name'
Expected behavior
Errors:
must have required property 'name'
andmust have required property 'color'
The text was updated successfully, but these errors were encountered: