Skip to content

Commit b9b18e4

Browse files
committed
refactor: Add example to ScriptEtagMismatchError
1 parent 34babee commit b9b18e4

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5714,11 +5714,21 @@ components:
57145714
id:
57155715
type: string
57165716
description: The script id.
5717+
example: abc
57175718
eTag:
57185719
type: string
57195720
description: The eTag.
5721+
example: 33a64df551425fcc55e4d42a148795d9f25f89d4
57205722
required:
57215723
- id
5724+
example:
5725+
general:
5726+
status: 412
5727+
title: Script eTag Mismatch
5728+
detail: Script with id 'abc' does not match the given etag '33a64df551425fcc55e4d42a148795d9f25f89d4'.
5729+
id: abc
5730+
eTag: 33a64df551425fcc55e4d42a148795d9f25f89d4
5731+
type: https://hivemq.com/edge/api/model/ScriptEtagMismatchError
57225732
ScriptValidationError:
57235733
allOf:
57245734
- $ref: '#/components/schemas/ValidationError'

ext/openAPI/components/schemas/errors/datahub/ScriptEtagMismatchError.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 script 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: "Script eTag Mismatch"
19+
detail: "Script with id 'abc' does not match the given etag '33a64df551425fcc55e4d42a148795d9f25f89d4'."
20+
id: "abc"
21+
eTag: "33a64df551425fcc55e4d42a148795d9f25f89d4"
22+
type: "https://hivemq.com/edge/api/model/ScriptEtagMismatchError"

0 commit comments

Comments
 (0)