Skip to content

Commit aa7fb91

Browse files
committed
refactor: Add example to SchemaAlreadyPresentError, SchemaEtagMismatchError
1 parent 8a9d3ba commit aa7fb91

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5547,8 +5547,16 @@ components:
55475547
id:
55485548
type: string
55495549
description: The schema id.
5550+
example: abc
55505551
required:
55515552
- id
5553+
example:
5554+
general:
5555+
status: 409
5556+
title: Schema Already Present
5557+
detail: The given schema is already present as the latest version for the schema id 'abc'.
5558+
id: abc
5559+
type: https://hivemq.com/edge/api/model/SchemaAlreadyPresentError
55525560
SchemaEtagMismatchError:
55535561
allOf:
55545562
- $ref: '#/components/schemas/ApiError'
@@ -5557,11 +5565,21 @@ components:
55575565
id:
55585566
type: string
55595567
description: The schema id.
5568+
example: abc
55605569
eTag:
55615570
type: string
55625571
description: The eTag.
5572+
example: 33a64df551425fcc55e4d42a148795d9f25f89d4
55635573
required:
55645574
- id
5575+
example:
5576+
general:
5577+
status: 412
5578+
title: Schema eTag Mismatch
5579+
detail: Schema with id 'abc' does not match the given etag '33a64df551425fcc55e4d42a148795d9f25f89d4'.
5580+
id: abc
5581+
eTag: 33a64df551425fcc55e4d42a148795d9f25f89d4
5582+
type: https://hivemq.com/edge/api/model/SchemaEtagMismatchError
55655583
SchemaValidationError:
55665584
allOf:
55675585
- $ref: '#/components/schemas/ValidationError'

ext/openAPI/components/schemas/errors/datahub/SchemaAlreadyPresentError.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,13 @@ allOf:
55
id:
66
type: string
77
description: The schema id.
8+
example: "abc"
89
required:
910
- id
11+
example:
12+
general:
13+
status: 409
14+
title: "Schema Already Present"
15+
detail: "The given schema is already present as the latest version for the schema id 'abc'."
16+
id: "abc"
17+
type: "https://hivemq.com/edge/api/model/SchemaAlreadyPresentError"

ext/openAPI/components/schemas/errors/datahub/SchemaEtagMismatchError.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@ allOf:
55
id:
66
type: string
77
description: The schema id.
8+
example: "abc"
89
eTag:
910
type: string
1011
description: The eTag.
12+
example: "33a64df551425fcc55e4d42a148795d9f25f89d4"
1113
required:
1214
- id
15+
example:
16+
general:
17+
status: 412
18+
title: "Schema eTag Mismatch"
19+
detail: "Schema with id 'abc' does not match the given etag '33a64df551425fcc55e4d42a148795d9f25f89d4'."
20+
id: "abc"
21+
eTag: "33a64df551425fcc55e4d42a148795d9f25f89d4"
22+
type: "https://hivemq.com/edge/api/model/SchemaEtagMismatchError"

0 commit comments

Comments
 (0)