Skip to content

Commit 8dbcbd3

Browse files
committed
refactor: Add example to SchemaInvalidErrors
1 parent aa7fb91 commit 8dbcbd3

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
@@ -5611,6 +5611,20 @@ components:
56115611
$ref: '#/components/schemas/SchemaValidationError'
56125612
required:
56135613
- childErrors
5614+
example:
5615+
general:
5616+
status: 400
5617+
title: Schema Invalid
5618+
detail: Schema is invalid due to validation errors.
5619+
type: https://hivemq.com/edge/api/model/SchemaInvalidErrors
5620+
childErrors:
5621+
- detail: The length of script field '$.id' 1025 must be between 0 and 1024.
5622+
paths: $.id
5623+
value: aaa...aaa
5624+
actualLength: 1025
5625+
expectedMinimumLength: 0
5626+
expectedMaximumLength: 1024
5627+
type: https://hivemq.com/edge/api/model/InvalidFieldLengthValidationError
56145628
SchemaNotFoundError:
56155629
allOf:
56165630
- $ref: '#/components/schemas/ApiError'

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@ allOf:
99
$ref: "./SchemaValidationError.yaml"
1010
required:
1111
- childErrors
12+
example:
13+
general:
14+
status: 400
15+
title: "Schema Invalid"
16+
detail: "Schema is invalid due to validation errors."
17+
type: "https://hivemq.com/edge/api/model/SchemaInvalidErrors"
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)