Skip to content

Commit 9ab9ccd

Browse files
committed
refactor: Add example to DataPolicyNotFoundError, DataPolicyRejectedError, DataPolicyUpdateFailureError
1 parent 633c14b commit 9ab9ccd

File tree

5 files changed

+46
-14
lines changed

5 files changed

+46
-14
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5306,7 +5306,7 @@ components:
53065306
general:
53075307
status: 404
53085308
title: Behavior Policy Not Found
5309-
detail: Behavior policy with ID 'abc' not found.
5309+
detail: Behavior policy with ID 'abc' is not found.
53105310
id: abc
53115311
type: https://hivemq.com/edge/api/model/BehaviorPolicyNotFoundError
53125312
BehaviorPolicyRejectedError:
@@ -5461,14 +5461,25 @@ components:
54615461
id:
54625462
type: string
54635463
description: The data policy id.
5464-
message:
5465-
type: string
5466-
description: The error message.
5464+
example: abc
54675465
required:
54685466
- id
5467+
example:
5468+
general:
5469+
status: 404
5470+
title: Data Policy Not Found
5471+
detail: Data policy with ID 'abc' is not found.
5472+
id: abc
5473+
type: https://hivemq.com/edge/api/model/DataPolicyNotFoundError
54695474
DataPolicyRejectedError:
54705475
allOf:
54715476
- $ref: '#/components/schemas/ApiError'
5477+
example:
5478+
general:
5479+
status: 400
5480+
title: Data Policy Rejected
5481+
detail: Data policy is rejected.
5482+
type: https://hivemq.com/edge/api/model/DataPolicyRejectedError
54725483
DataPolicyUpdateFailureError:
54735484
allOf:
54745485
- $ref: '#/components/schemas/ApiError'
@@ -5477,11 +5488,16 @@ components:
54775488
id:
54785489
type: string
54795490
description: The ID of the policy that failed to update.
5480-
reason:
5481-
type: string
5482-
description: The actual reason.
5491+
example: abc
54835492
required:
54845493
- id
5494+
example:
5495+
general:
5496+
status: 400
5497+
title: Data Policy Update Failed
5498+
detail: Data policy with ID 'abc' update failed.
5499+
id: abc
5500+
type: https://hivemq.com/edge/api/model/DataPolicyUpdateFailureError
54855501
PolicyIdMismatchError:
54865502
allOf:
54875503
- $ref: '#/components/schemas/ApiError'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ example:
1212
general:
1313
status: 404
1414
title: "Behavior Policy Not Found"
15-
detail: "Behavior policy with ID 'abc' not found."
15+
detail: "Behavior policy with ID 'abc' is not found."
1616
id: "abc"
1717
type: "https://hivemq.com/edge/api/model/BehaviorPolicyNotFoundError"

ext/openAPI/components/schemas/errors/datahub/DataPolicyNotFoundError.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 data policy 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: "Data Policy Not Found"
15+
detail: "Data policy with ID 'abc' is not found."
16+
id: "abc"
17+
type: "https://hivemq.com/edge/api/model/DataPolicyNotFoundError"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
allOf:
22
- $ref: "../ApiError.yaml"
3+
example:
4+
general:
5+
status: 400
6+
title: "Data Policy Rejected"
7+
detail: "Data policy is rejected."
8+
type: "https://hivemq.com/edge/api/model/DataPolicyRejectedError"

ext/openAPI/components/schemas/errors/datahub/DataPolicyUpdateFailureError.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 ID of the policy that failed to update.
8-
reason:
9-
type: string
10-
description: The actual reason.
8+
example: "abc"
119
required:
1210
- id
11+
example:
12+
general:
13+
status: 400
14+
title: "Data Policy Update Failed"
15+
detail: "Data policy with ID 'abc' update failed."
16+
id: "abc"
17+
type: "https://hivemq.com/edge/api/model/DataPolicyUpdateFailureError"

0 commit comments

Comments
 (0)