Adding proper result structure to error return message
This commit is contained in:
parent
67c852482e
commit
c375b9f553
1862
misc/BreCalApi.cs
1862
misc/BreCalApi.cs
File diff suppressed because it is too large
Load Diff
@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user