Skip to content

Commit 633c14b

Browse files
committed
refactor: Add example to DataPolicyInvalidErrors
1 parent d6dcd07 commit 633c14b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

ext/hivemq-edge-openapi-2025.9.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5438,6 +5438,21 @@ components:
54385438
$ref: '#/components/schemas/DataPolicyValidationError'
54395439
required:
54405440
- childErrors
5441+
example:
5442+
general:
5443+
status: 400
5444+
title: Data Policy Invalid
5445+
detail: Data policy is invalid due to validation errors.
5446+
type: https://hivemq.com/edge/api/model/DataPolicyInvalidErrors
5447+
childErrors:
5448+
- detail: The pipeline must contain at most one 'function1' function, but 3 were found at ['$.path1', '$.path2', '$.path3'].
5449+
function: function1
5450+
occurrences: 3
5451+
paths:
5452+
- $.path1
5453+
- $.path2
5454+
- $.path3
5455+
type: https://hivemq.com/edge/api/model/AtMostOneFunctionValidationError
54415456
DataPolicyNotFoundError:
54425457
allOf:
54435458
- $ref: '#/components/schemas/ApiError'

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,18 @@ allOf:
99
$ref: "./DataPolicyValidationError.yaml"
1010
required:
1111
- childErrors
12+
example:
13+
general:
14+
status: 400
15+
title: "Data Policy Invalid"
16+
detail: "Data policy is invalid due to validation errors."
17+
type: "https://hivemq.com/edge/api/model/DataPolicyInvalidErrors"
18+
childErrors:
19+
- detail: "The pipeline must contain at most one 'function1' function, but 3 were found at ['$.path1', '$.path2', '$.path3']."
20+
function: "function1"
21+
occurrences: 3
22+
paths:
23+
- "$.path1"
24+
- "$.path2"
25+
- "$.path3"
26+
type: "https://hivemq.com/edge/api/model/AtMostOneFunctionValidationError"

0 commit comments

Comments
 (0)