Skip to content

Commit d761cb6

Browse files
committed
refactor: Add example to ScriptReferencedError, ScriptSanitationFailureError
1 parent 81eff97 commit d761cb6

File tree

3 files changed

+28
-20
lines changed

3 files changed

+28
-20
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5807,21 +5807,25 @@ components:
58075807
id:
58085808
type: string
58095809
description: The script ID.
5810-
message:
5811-
type: string
5812-
description: The error message.
5810+
example: abc
58135811
required:
58145812
- id
5813+
example:
5814+
general:
5815+
status: 400
5816+
title: Script Referenced
5817+
detail: Script with ID 'abc' is referenced.
5818+
id: abc
5819+
type: https://hivemq.com/edge/api/model/ScriptReferencedError
58155820
ScriptSanitationFailureError:
58165821
allOf:
58175822
- $ref: '#/components/schemas/ApiError'
5818-
- type: object
5819-
properties:
5820-
reason:
5821-
type: string
5822-
description: The actual reason.
5823-
required:
5824-
- reason
5823+
example:
5824+
general:
5825+
status: 400
5826+
title: Script Sanitation Failure
5827+
detail: The given script could not be sanitized.
5828+
type: https://hivemq.com/edge/api/model/ScriptSanitationFailureError
58255829
TopicFilterMismatchError:
58265830
allOf:
58275831
- $ref: '#/components/schemas/ApiError'

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ allOf:
55
id:
66
type: string
77
description: The script ID.
8-
message:
9-
type: string
10-
description: The error message.
8+
example: "abc"
119
required:
1210
- id
11+
example:
12+
general:
13+
status: 400
14+
title: "Script Referenced"
15+
detail: "Script with ID 'abc' is referenced."
16+
id: "abc"
17+
type: "https://hivemq.com/edge/api/model/ScriptReferencedError"
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
allOf:
22
- $ref: "../ApiError.yaml"
3-
- type: object
4-
properties:
5-
reason:
6-
type: string
7-
description: The actual reason.
8-
required:
9-
- reason
3+
example:
4+
general:
5+
status: 400
6+
title: "Script Sanitation Failure"
7+
detail: "The given script could not be sanitized."
8+
type: "https://hivemq.com/edge/api/model/ScriptSanitationFailureError"

0 commit comments

Comments
 (0)