Adding proper result structure to error return message
This commit is contained in:
parent
67c852482e
commit
c375b9f553
1868
misc/BreCalApi.cs
1868
misc/BreCalApi.cs
File diff suppressed because it is too large
Load Diff
@ -943,12 +943,21 @@ components:
|
||||
type: integer
|
||||
Error:
|
||||
type: object
|
||||
required:
|
||||
- message
|
||||
description: Structure returned when invalid data (bad request) is created.
|
||||
properties:
|
||||
message:
|
||||
description: A human readable error message
|
||||
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:
|
||||
type: string
|
||||
enum:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user