Skip to content

Commit 8a9d3ba

Browse files
committed
refactor: Add example to PolicyIdMismatchError, PolicyNotFoundError
1 parent 9ab9ccd commit 8a9d3ba

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5506,12 +5506,21 @@ components:
55065506
actualId:
55075507
type: string
55085508
description: The actual id.
5509+
example: id1
55095510
expectedId:
55105511
type: string
55115512
description: The expected id.
5513+
example: id2
55125514
required:
55135515
- actualId
55145516
- expectedId
5517+
example:
5518+
general:
5519+
status: 400
5520+
title: Policy ID Mismatch
5521+
detail: The policy ID 'id1' in the request parameter does not match the policy ID 'id2' in the policy request body.
5522+
id: abc
5523+
type: https://hivemq.com/edge/api/model/PolicyIdMismatchError
55155524
PolicyNotFoundError:
55165525
allOf:
55175526
- $ref: '#/components/schemas/ApiError'
@@ -5520,8 +5529,16 @@ components:
55205529
id:
55215530
type: string
55225531
description: The policy id.
5532+
example: abc
55235533
required:
55245534
- id
5535+
example:
5536+
general:
5537+
status: 404
5538+
title: Policy Not Found
5539+
detail: Policy with ID 'abc' is not found.
5540+
id: abc
5541+
type: https://hivemq.com/edge/api/model/PolicyNotFoundError
55255542
SchemaAlreadyPresentError:
55265543
allOf:
55275544
- $ref: '#/components/schemas/ApiError'

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ allOf:
55
actualId:
66
type: string
77
description: The actual id.
8+
example: "id1"
89
expectedId:
910
type: string
1011
description: The expected id.
12+
example: "id2"
1113
required:
1214
- actualId
1315
- expectedId
16+
example:
17+
general:
18+
status: 400
19+
title: "Policy ID Mismatch"
20+
detail: "The policy ID 'id1' in the request parameter does not match the policy ID 'id2' in the policy request body."
21+
id: "abc"
22+
type: "https://hivemq.com/edge/api/model/PolicyIdMismatchError"

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,13 @@ allOf:
55
id:
66
type: string
77
description: The policy id.
8+
example: "abc"
89
required:
910
- id
11+
example:
12+
general:
13+
status: 404
14+
title: "Policy Not Found"
15+
detail: "Policy with ID 'abc' is not found."
16+
id: "abc"
17+
type: "https://hivemq.com/edge/api/model/PolicyNotFoundError"

0 commit comments

Comments
 (0)