Skip to content

Commit d8be3f1

Browse files
committed
Swagger QA changes
1 parent 6593de8 commit d8be3f1

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

infrastructure/swagger/05_paths.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ paths:
329329
"200":
330330
$ref: "#/components/responses/SdsDeviceSearch"
331331
"400":
332-
$ref: "#/components/responses/BadRequest"
332+
$ref: "#/components/responses/SdsSearchDeviceBadRequest"
333333
x-amazon-apigateway-integration:
334334
<<: *ApiGatewayIntegration
335335
uri: ${method_searchSdsDevice}

infrastructure/swagger/12_components--responses.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,23 @@ components:
4747
errors:
4848
- code: "VALIDATION_ERROR"
4949
message: "Item already exists"
50+
SdsSearchDeviceBadRequest:
51+
description: searchSDSDevice Bad request
52+
content:
53+
application/json:
54+
schema:
55+
$ref: "#/components/schemas/ErrorResponse"
56+
examples:
57+
MissingValue:
58+
value:
59+
errors:
60+
- code: "MISSING_VALUE"
61+
message: "SearchSDSDeviceQueryParams.nhs_as_client: field required"
62+
ValidationError:
63+
value:
64+
errors:
65+
- code: "VALIDATION_ERROR"
66+
message: "SearchSDSDeviceQueryParams.foo: extra fields not permitted"
5067
SdsSearchEndpointBadRequest:
5168
description: searchSDSEndpoint Bad request
5269
content:

0 commit comments

Comments
 (0)