Skip to content

Commit 6593de8

Browse files
committed
Swagger QA changes
1 parent 0c27cf1 commit 6593de8

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
@@ -352,7 +352,7 @@ paths:
352352
"200":
353353
$ref: "#/components/responses/SdsEndpointSearch"
354354
"400":
355-
$ref: "#/components/responses/BadRequest"
355+
$ref: "#/components/responses/SdsSearchEndpointBadRequest"
356356
x-amazon-apigateway-integration:
357357
<<: *ApiGatewayIntegration
358358
uri: ${method_searchSdsEndpoint}

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+
SdsSearchEndpointBadRequest:
51+
description: searchSDSEndpoint Bad request
52+
content:
53+
application/json:
54+
schema:
55+
$ref: "#/components/schemas/ErrorResponse"
56+
examples:
57+
ValidationErrorExtraFields:
58+
value:
59+
errors:
60+
- code: "VALIDATION_ERROR"
61+
message: "SearchSDSEndpointQueryParams.foo: extra fields not permitted"
62+
ValidationError:
63+
value:
64+
errors:
65+
- code: "VALIDATION_ERROR"
66+
message: "SearchSDSEndpointQueryParams.__root__: At least 2 query parameters should be provided of type, nhs_id_code, nhs_mhs_svc_ia and nhs_mhs_party_key"
5067
UnprocessableContent:
5168
description: Unprocessable Content
5269
content:

0 commit comments

Comments
 (0)