Skip to content

Commit f6582ac

Browse files
committed
refactor: Add example to ScriptInvalidErrors
1 parent b9b18e4 commit f6582ac

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5758,6 +5758,20 @@ components:
57585758
$ref: '#/components/schemas/ScriptValidationError'
57595759
required:
57605760
- childErrors
5761+
example:
5762+
general:
5763+
status: 400
5764+
title: Script Invalid
5765+
detail: Script is invalid due to validation errors.
5766+
type: https://hivemq.com/edge/api/model/ScriptInvalidErrors
5767+
childErrors:
5768+
- detail: The length of script field '$.id' 1025 must be between 0 and 1024.
5769+
paths: $.id
5770+
value: aaa...aaa
5771+
actualLength: 1025
5772+
expectedMinimumLength: 0
5773+
expectedMaximumLength: 1024
5774+
type: https://hivemq.com/edge/api/model/InvalidFieldLengthValidationError
57615775
ScriptNotFoundError:
57625776
allOf:
57635777
- $ref: '#/components/schemas/ApiError'

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@ allOf:
99
$ref: "./ScriptValidationError.yaml"
1010
required:
1111
- childErrors
12+
example:
13+
general:
14+
status: 400
15+
title: "Script Invalid"
16+
detail: "Script is invalid due to validation errors."
17+
type: "https://hivemq.com/edge/api/model/ScriptInvalidErrors"
18+
childErrors:
19+
- detail: "The length of script field '$.id' 1025 must be between 0 and 1024."
20+
paths: "$.id"
21+
value: "aaa...aaa"
22+
actualLength: 1025
23+
expectedMinimumLength: 0
24+
expectedMaximumLength: 1024
25+
type: "https://hivemq.com/edge/api/model/InvalidFieldLengthValidationError"

0 commit comments

Comments
 (0)