Skip to content

Commit a1379cd

Browse files
committed
feat: rename Error to GridError and add additionalProperties to error schemas
1 parent 79467e5 commit a1379cd

16 files changed

Lines changed: 112 additions & 39 deletions

mintlify/openapi.yaml

Lines changed: 38 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi.yaml

Lines changed: 38 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type: object
2+
title: GridError
3+
properties:
4+
code:
5+
type: string
6+
description: Error code
7+
message:
8+
type: string
9+
description: Error message
10+
details:
11+
type: object
12+
description: Additional error details
13+
additionalProperties: true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
allOf:
2+
- $ref: ../common/GridError.yaml
3+
- type: object
4+
description: Error information for a failed bulk import entry
5+
required:
6+
- correlationId
7+
properties:
8+
correlationId:
9+
type: string
10+
description: Platform customer ID or row number for the failed entry
11+
example: biz456

openapi/components/schemas/customers/BulkCustomerImportJob.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,7 @@ properties:
4545
type: array
4646
description: Detailed error information for failed entries
4747
items:
48-
type: object
49-
required:
50-
- correlationId
51-
- error
52-
properties:
53-
correlationId:
54-
type: string
55-
description: Platform customer ID or row number for the failed entry
56-
example: biz456
57-
error:
58-
$ref: ../common/Error.yaml
48+
$ref: BulkCustomerImportErrorEntry.yaml
5949
completedAt:
6050
type: string
6151
format: date-time

openapi/components/schemas/errors/Error400.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,4 @@ properties:
7474
details:
7575
type: object
7676
description: Additional error details
77+
additionalProperties: true

openapi/components/schemas/errors/Error401.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ properties:
2424
details:
2525
type: object
2626
description: Additional error details
27+
additionalProperties: true

openapi/components/schemas/errors/Error403.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ properties:
2828
details:
2929
type: object
3030
description: Additional error details
31+
additionalProperties: true

openapi/components/schemas/errors/Error404.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ properties:
3636
details:
3737
type: object
3838
description: Additional error details
39+
additionalProperties: true

openapi/components/schemas/errors/Error409.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ properties:
2424
details:
2525
type: object
2626
description: Additional error details
27+
additionalProperties: true

0 commit comments

Comments
 (0)