Skip to content

Commit 3a5a266

Browse files
Merge pull request #705 from NHSDigital/feature/made14-NRL-1007-reqid-required-in-spec
[NRL-1007] Make X-Request-Id a required header in the API spec
2 parents a5496ef + 9513567 commit 3a5a266

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

api/consumer/record-locator/consumer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ components:
15821582
15831583
Mirrored back in a response header.
15841584
in: header
1585-
required: false
1585+
required: true
15861586
schema:
15871587
$ref: "#/components/schemas/RequestHeaderRequestId"
15881588
correlationId:
@@ -1625,4 +1625,4 @@ components:
16251625
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
16261626
example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
16271627
description: |
1628-
The X-Request-ID from the request header, if supplied, mirrored back.
1628+
The X-Request-ID from the request header mirrored back.

api/consumer/swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ components:
15291529
15301530
Mirrored back in a response header.
15311531
in: header
1532-
required: false
1532+
required: true
15331533
schema:
15341534
$ref: "#/components/schemas/RequestHeaderRequestId"
15351535
correlationId:
@@ -1572,4 +1572,4 @@ components:
15721572
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
15731573
example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
15741574
description: |
1575-
The X-Request-ID from the request header, if supplied, mirrored back.
1575+
The X-Request-ID from the request header mirrored back.

api/producer/record-locator/producer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,7 +2158,7 @@ components:
21582158
21592159
Mirrored back in a response header.
21602160
in: header
2161-
required: false
2161+
required: true
21622162
schema:
21632163
$ref: "#/components/schemas/RequestHeaderRequestId"
21642164
correlationId:
@@ -2211,4 +2211,4 @@ components:
22112211
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
22122212
example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
22132213
description: |
2214-
The X-Request-ID from the request header, if supplied, mirrored back.
2214+
The X-Request-ID from the request header mirrored back.

api/producer/swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ components:
20342034
20352035
Mirrored back in a response header.
20362036
in: header
2037-
required: false
2037+
required: true
20382038
schema:
20392039
$ref: "#/components/schemas/RequestHeaderRequestId"
20402040
correlationId:
@@ -2087,4 +2087,4 @@ components:
20872087
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
20882088
example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
20892089
description: |
2090-
The X-Request-ID from the request header, if supplied, mirrored back.
2090+
The X-Request-ID from the request header mirrored back.

swagger/consumer-static/components.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ components:
6767
6868
Mirrored back in a response header.
6969
in: header
70-
required: false
70+
required: true
7171
schema:
7272
$ref: "#/components/schemas/RequestHeaderRequestId"
7373
correlationId:
@@ -177,4 +177,4 @@ components:
177177
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
178178
example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
179179
description: |
180-
The X-Request-ID from the request header, if supplied, mirrored back.
180+
The X-Request-ID from the request header mirrored back.

swagger/producer-static/components.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ components:
4949
5050
Mirrored back in a response header.
5151
in: header
52-
required: false
52+
required: true
5353
schema:
5454
$ref: "#/components/schemas/RequestHeaderRequestId"
5555
correlationId:
@@ -214,4 +214,4 @@ components:
214214
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
215215
example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
216216
description: |
217-
The X-Request-ID from the request header, if supplied, mirrored back.
217+
The X-Request-ID from the request header mirrored back.

swagger/producer-static/narrative.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,4 +1271,4 @@ components:
12711271
schema:
12721272
example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
12731273
description: |
1274-
The X-Request-ID from the request header, if supplied, mirrored back.
1274+
The X-Request-ID from the request header mirrored back.

0 commit comments

Comments
 (0)