Adding proper result structure to error return message

This commit is contained in:
Daniel Schick 2024-09-10 12:59:39 +02:00
parent 67c852482e
commit c375b9f553
2 changed files with 252 additions and 1631 deletions

File diff suppressed because it is too large Load Diff

View File

@ -943,12 +943,21 @@ components:
type: integer type: integer
Error: Error:
type: object type: object
required: description: Structure returned when invalid data (bad request) is created.
- message
properties: properties:
message: message:
description: A human readable error message description: A human readable error message
type: string type: string
errors:
description: A list of errors
type: array
items:
type: string
valid_data:
description: A dictionary of valid data
type: object
required:
- message
ShipcallType: ShipcallType:
type: string type: string
enum: enum: