Skip to content

Commit ad24e6a

Browse files
committed
refactor: Add example to SchemaNotFoundError
1 parent 8dbcbd3 commit ad24e6a

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5633,11 +5633,16 @@ components:
56335633
id:
56345634
type: string
56355635
description: The schema ID.
5636-
message:
5637-
type: string
5638-
description: The error message.
5636+
example: abc
56395637
required:
56405638
- id
5639+
example:
5640+
general:
5641+
status: 404
5642+
title: Schema Not Found
5643+
detail: Schema with ID 'abc' is not found.
5644+
id: abc
5645+
type: https://hivemq.com/edge/api/model/SchemaNotFoundError
56415646
SchemaParsingFailureError:
56425647
allOf:
56435648
- $ref: '#/components/schemas/ApiError'

ext/openAPI/components/schemas/errors/datahub/SchemaNotFoundError.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: 404
14+
title: "Schema Not Found"
15+
detail: "Schema with ID 'abc' is not found."
16+
id: "abc"
17+
type: "https://hivemq.com/edge/api/model/SchemaNotFoundError"

0 commit comments

Comments
 (0)