Skip to content

Commit dc0e924

Browse files
committed
feat: Add problem+json to all DataHub REST API errors
1 parent e0ce121 commit dc0e924

16 files changed

+186
-184
lines changed

ext/hivemq-edge-openapi-2025.12-SNAPSHOT.yaml

Lines changed: 85 additions & 85 deletions
Large diffs are not rendered by default.

ext/openAPI/paths/api_v1_data-hub_behavior-validation_policies.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ get:
180180
description: Success
181181
'400':
182182
content:
183-
application/json:
183+
application/problem+json:
184184
schema:
185185
oneOf:
186186
- $ref: "../components/schemas/errors/http/InvalidQueryParameterError.yaml"
@@ -191,7 +191,7 @@ get:
191191
description: URL parameter missing
192192
'503':
193193
content:
194-
application/json:
194+
application/problem+json:
195195
schema:
196196
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
197197
description: Request resource temporary unavailable
@@ -279,7 +279,7 @@ post:
279279
description: Success
280280
'400':
281281
content:
282-
application/json:
282+
application/problem+json:
283283
schema:
284284
oneOf:
285285
- $ref: "../components/schemas/errors/datahub/BehaviorPolicyCreationFailureError.yaml"
@@ -296,25 +296,25 @@ post:
296296
description: Policy creation failed
297297
'409':
298298
content:
299-
application/json:
299+
application/problem+json:
300300
schema:
301301
$ref: "../components/schemas/errors/datahub/BehaviorPolicyAlreadyPresentError.yaml"
302302
description: Behavior policy already present
303303
'500':
304304
content:
305-
application/json:
305+
application/problem+json:
306306
schema:
307307
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
308308
description: Internal server error
309309
'503':
310310
content:
311-
application/json:
311+
application/problem+json:
312312
schema:
313313
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
314314
description: Request resource temporary unavailable
315315
'507':
316316
content:
317-
application/json:
317+
application/problem+json:
318318
schema:
319319
$ref: "../components/schemas/errors/datahub/PolicyInsufficientStorageError.yaml"
320320
description: Insufficient storage

ext/openAPI/paths/api_v1_data-hub_behavior-validation_policies_{policyId}.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ delete:
2323
description: Success, no response body
2424
'400':
2525
content:
26-
application/json:
26+
application/problem+json:
2727
schema:
2828
oneOf:
2929
- $ref: "../components/schemas/errors/http/UrlParameterMissingError.yaml"
@@ -34,25 +34,25 @@ delete:
3434
description: URL parameter missing
3535
'404':
3636
content:
37-
application/json:
37+
application/problem+json:
3838
schema:
3939
$ref: "../components/schemas/errors/datahub/PolicyNotFoundError.yaml"
4040
description: Behavior policy not found
4141
'412':
4242
content:
43-
application/json:
43+
application/problem+json:
4444
schema:
4545
$ref: "../components/schemas/errors/http/PreconditionFailedError.yaml"
4646
description: Precondition failed
4747
'500':
4848
content:
49-
application/json:
49+
application/problem+json:
5050
schema:
5151
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
5252
description: Internal server error
5353
'503':
5454
content:
55-
application/json:
55+
application/problem+json:
5656
schema:
5757
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
5858
description: Request resource temporary unavailable
@@ -126,7 +126,7 @@ get:
126126
description: Success
127127
'400':
128128
content:
129-
application/json:
129+
application/problem+json:
130130
schema:
131131
oneOf:
132132
- $ref: "../components/schemas/errors/http/UrlParameterMissingError.yaml"
@@ -137,19 +137,19 @@ get:
137137
description: Bad request
138138
'404':
139139
content:
140-
application/json:
140+
application/problem+json:
141141
schema:
142142
$ref: "../components/schemas/errors/datahub/BehaviorPolicyNotFoundError.yaml"
143143
description: Policy not found
144144
'500':
145145
content:
146-
application/json:
146+
application/problem+json:
147147
schema:
148148
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
149149
description: Internal server error
150150
'503':
151151
content:
152-
application/json:
152+
application/problem+json:
153153
schema:
154154
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
155155
description: Request resource temporary unavailable
@@ -255,7 +255,7 @@ put:
255255
description: Success
256256
'400':
257257
content:
258-
application/json:
258+
application/problem+json:
259259
schema:
260260
oneOf:
261261
- $ref: "../components/schemas/errors/http/RequestBodyMissingError.yaml"
@@ -276,31 +276,31 @@ put:
276276
description: Behavior policy creation failed
277277
'404':
278278
content:
279-
application/json:
279+
application/problem+json:
280280
schema:
281281
$ref: "../components/schemas/errors/datahub/BehaviorPolicyNotFoundError.yaml"
282282
description: Data policy not found
283283
'412':
284284
content:
285-
application/json:
285+
application/problem+json:
286286
schema:
287287
$ref: "../components/schemas/errors/http/PreconditionFailedError.yaml"
288288
description: Precondition failed
289289
'500':
290290
content:
291-
application/json:
291+
application/problem+json:
292292
schema:
293293
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
294294
description: Internal server error
295295
'503':
296296
content:
297-
application/json:
297+
application/problem+json:
298298
schema:
299299
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
300300
description: Request resource temporary unavailable
301301
'507':
302302
content:
303-
application/json:
303+
application/problem+json:
304304
schema:
305305
$ref: "../components/schemas/errors/datahub/PolicyInsufficientStorageError.yaml"
306306
description: Insufficient storage

ext/openAPI/paths/api_v1_data-hub_behavior-validation_states_{clientId}.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ get:
3838
description: Success
3939
'400':
4040
content:
41-
application/json:
41+
application/problem+json:
4242
schema:
4343
oneOf:
4444
- $ref: "../components/schemas/errors/http/UrlParameterMissingError.yaml"
@@ -49,7 +49,7 @@ get:
4949
description: URL parameter missing
5050
'404':
5151
content:
52-
application/json:
52+
application/problem+json:
5353
schema:
5454
oneOf:
5555
- $ref: "../components/schemas/errors/datahub/ClientDisconnectedError.yaml"
@@ -62,7 +62,7 @@ get:
6262
description: Client error
6363
'500':
6464
content:
65-
application/json:
65+
application/problem+json:
6666
schema:
6767
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
6868
description: Internal server error

ext/openAPI/paths/api_v1_data-hub_data-validation_policies.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ get:
285285
description: Success
286286
'400':
287287
content:
288-
application/json:
288+
application/problem+json:
289289
schema:
290290
oneOf:
291291
- $ref: "../components/schemas/errors/http/InvalidQueryParameterError.yaml"
@@ -296,7 +296,7 @@ get:
296296
description: URL parameter missing
297297
'503':
298298
content:
299-
application/json:
299+
application/problem+json:
300300
schema:
301301
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
302302
description: Request resource temporary unavailable
@@ -390,7 +390,7 @@ post:
390390
description: Success
391391
'400':
392392
content:
393-
application/json:
393+
application/problem+json:
394394
schema:
395395
oneOf:
396396
- $ref: "../components/schemas/errors/http/RequestBodyMissingError.yaml"
@@ -407,25 +407,25 @@ post:
407407
description: Data policy creation failed
408408
'409':
409409
content:
410-
application/json:
410+
application/problem+json:
411411
schema:
412412
$ref: "../components/schemas/errors/datahub/DataPolicyAlreadyPresentError.yaml"
413413
description: Data policy already present
414414
'500':
415415
content:
416-
application/json:
416+
application/problem+json:
417417
schema:
418418
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
419419
description: Internal server error
420420
'503':
421421
content:
422-
application/json:
422+
application/problem+json:
423423
schema:
424424
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
425425
description: Request resource temporary unavailable
426426
'507':
427427
content:
428-
application/json:
428+
application/problem+json:
429429
schema:
430430
$ref: "../components/schemas/errors/datahub/PolicyInsufficientStorageError.yaml"
431431
description: Insufficient storage

ext/openAPI/paths/api_v1_data-hub_data-validation_policies_{policyId}.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ delete:
2323
description: Success, no response body
2424
'400':
2525
content:
26-
application/json:
26+
application/problem+json:
2727
schema:
2828
oneOf:
2929
- $ref: "../components/schemas/errors/http/UrlParameterMissingError.yaml"
@@ -34,25 +34,25 @@ delete:
3434
description: URL parameter missing
3535
'404':
3636
content:
37-
application/json:
37+
application/problem+json:
3838
schema:
3939
$ref: "../components/schemas/errors/datahub/PolicyNotFoundError.yaml"
4040
description: Data policy not found
4141
'412':
4242
content:
43-
application/json:
43+
application/problem+json:
4444
schema:
4545
$ref: "../components/schemas/errors/http/PreconditionFailedError.yaml"
4646
description: Precondition failed
4747
'500':
4848
content:
49-
application/json:
49+
application/problem+json:
5050
schema:
5151
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
5252
description: Internal server error
5353
'503':
5454
content:
55-
application/json:
55+
application/problem+json:
5656
schema:
5757
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
5858
description: Request resource temporary unavailable
@@ -129,7 +129,7 @@ get:
129129
description: Success
130130
'400':
131131
content:
132-
application/json:
132+
application/problem+json:
133133
schema:
134134
oneOf:
135135
- $ref: "../components/schemas/errors/http/UrlParameterMissingError.yaml"
@@ -140,19 +140,19 @@ get:
140140
description: Bad request
141141
'404':
142142
content:
143-
application/json:
143+
application/problem+json:
144144
schema:
145145
$ref: "../components/schemas/errors/datahub/PolicyNotFoundError.yaml"
146146
description: Resource not found
147147
'500':
148148
content:
149-
application/json:
149+
application/problem+json:
150150
schema:
151151
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
152152
description: Internal server error
153153
'503':
154154
content:
155-
application/json:
155+
application/problem+json:
156156
schema:
157157
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
158158
description: Request resource temporary unavailable
@@ -265,7 +265,7 @@ put:
265265
description: Success
266266
'400':
267267
content:
268-
application/json:
268+
application/problem+json:
269269
schema:
270270
oneOf:
271271
- $ref: "../components/schemas/errors/http/RequestBodyMissingError.yaml"
@@ -288,31 +288,31 @@ put:
288288
description: Data policy creation failed
289289
'404':
290290
content:
291-
application/json:
291+
application/problem+json:
292292
schema:
293293
$ref: "../components/schemas/errors/datahub/DataPolicyNotFoundError.yaml"
294294
description: Data policy not found
295295
'412':
296296
content:
297-
application/json:
297+
application/problem+json:
298298
schema:
299299
$ref: "../components/schemas/errors/http/PreconditionFailedError.yaml"
300300
description: Precondition failed
301301
'500':
302302
content:
303-
application/json:
303+
application/problem+json:
304304
schema:
305305
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
306306
description: Internal server error
307307
'503':
308308
content:
309-
application/json:
309+
application/problem+json:
310310
schema:
311311
$ref: "../components/schemas/errors/http/TemporaryNotAvailableError.yaml"
312312
description: Request resource temporary unavailable
313313
'507':
314314
content:
315-
application/json:
315+
application/problem+json:
316316
schema:
317317
$ref: "../components/schemas/errors/datahub/PolicyInsufficientStorageError.yaml"
318318
description: Insufficient storage

ext/openAPI/paths/api_v1_data-hub_fsm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ get:
9090
description: Success
9191
'500':
9292
content:
93-
application/json:
93+
application/problem+json:
9494
schema:
9595
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
9696
description: Internal server error

ext/openAPI/paths/api_v1_data-hub_function-specs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ get:
1212
description: Success
1313
'500':
1414
content:
15-
application/json:
15+
application/problem+json:
1616
schema:
1717
$ref: "../components/schemas/errors/http/InternalServerError.yaml"
1818
description: Internal server error

0 commit comments

Comments
 (0)