Skip to content

Commit 2389b50

Browse files
committed
refactor: Add example to SchemaParsingFailureError, SchemaReferencedError
1 parent ad24e6a commit 2389b50

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5651,12 +5651,16 @@ components:
56515651
alias:
56525652
type: string
56535653
description: The schema alias.
5654-
message:
5655-
type: string
5656-
description: The error message.
5654+
example: abc
56575655
required:
56585656
- alias
5659-
- message
5657+
example:
5658+
general:
5659+
status: 400
5660+
title: Schema Parsing Failure
5661+
detail: The given schema 'abc' could not be parsed.
5662+
alias: abc
5663+
type: https://hivemq.com/edge/api/model/SchemaParsingFailureError
56605664
SchemaReferencedError:
56615665
allOf:
56625666
- $ref: '#/components/schemas/ApiError'
@@ -5665,11 +5669,16 @@ components:
56655669
id:
56665670
type: string
56675671
description: The schema ID.
5668-
message:
5669-
type: string
5670-
description: The error message.
5672+
example: abc
56715673
required:
56725674
- id
5675+
example:
5676+
general:
5677+
status: 400
5678+
title: Schema Referenced
5679+
detail: Schema with ID 'abc' is referenced.
5680+
id: abc
5681+
type: https://hivemq.com/edge/api/model/SchemaReferencedError
56735682
ScriptAlreadyPresentError:
56745683
allOf:
56755684
- $ref: '#/components/schemas/ApiError'

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ allOf:
55
alias:
66
type: string
77
description: The schema alias.
8-
message:
9-
type: string
10-
description: The error message.
8+
example: "abc"
119
required:
1210
- alias
13-
- message
11+
example:
12+
general:
13+
status: 400
14+
title: "Schema Parsing Failure"
15+
detail: "The given schema 'abc' could not be parsed."
16+
alias: "abc"
17+
type: "https://hivemq.com/edge/api/model/SchemaParsingFailureError"

ext/openAPI/components/schemas/errors/datahub/SchemaReferencedError.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 schema 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: "Schema Referenced"
15+
detail: "Schema with ID 'abc' is referenced."
16+
id: "abc"
17+
type: "https://hivemq.com/edge/api/model/SchemaReferencedError"

0 commit comments

Comments
 (0)