Skip to content

Commit 1b7a6e1

Browse files
Merge pull request #2744 from NHSDigital/feature/RAA-6512
[RAA-6512]-[GC]-[Bumped Redocly (major) and override handlebars dep f…
2 parents 43f5a64 + dd84bbf commit 1b7a6e1

7 files changed

Lines changed: 981 additions & 2119 deletions

File tree

package-lock.json

Lines changed: 888 additions & 2026 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
"license": "MIT",
1313
"homepage": "https://github.com/NHSDigital/e-referrals-service-api",
1414
"dependencies": {
15-
"@redocly/cli": "^1.34.5"
15+
"@redocly/cli": "^2.25.3"
1616
},
1717
"devDependencies": {
1818
"license-checker": "^25.0.1",
1919
"minimist": "^1.2.8"
20+
},
21+
"overrides": {
22+
"handlebars": "^4.7.9"
2023
}
2124
}

redocly.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ extends:
33
rules:
44
no-invalid-media-type-examples:
55
severity: off
6-
info-license-url: off
76
tag-description: off

specification/components/stu3/schemas/endpoints/a020-upload-file-to-document-store.yaml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,49 @@ parameters:
8181
requestBody:
8282
required: true
8383
content:
84-
$ref: '../file/FileContentTypeSchemaUpload.yaml'
84+
text/plain:
85+
schema:
86+
$ref: '../file/StringBinarySchema.yaml'
87+
example: 'This is some example text.'
88+
application/pdf:
89+
schema:
90+
$ref: '../file/StringBinarySchema.yaml'
91+
text/xml:
92+
schema:
93+
$ref: '../file/StringBinarySchema.yaml'
94+
text/rtf:
95+
schema:
96+
$ref: '../file/StringBinarySchema.yaml'
97+
audio/basic:
98+
schema:
99+
$ref: '../file/StringBinarySchema.yaml'
100+
audio/mpeg:
101+
schema:
102+
$ref: '../file/StringBinarySchema.yaml'
103+
image/png:
104+
schema:
105+
$ref: '../file/StringBinarySchema.yaml'
106+
image/gif:
107+
schema:
108+
$ref: '../file/StringBinarySchema.yaml'
109+
image/jpeg:
110+
schema:
111+
$ref: '../file/StringBinarySchema.yaml'
112+
image/tiff:
113+
schema:
114+
$ref: '../file/StringBinarySchema.yaml'
115+
video/mpeg:
116+
schema:
117+
$ref: '../file/StringBinarySchema.yaml'
118+
application/msword:
119+
schema:
120+
$ref: '../file/StringBinarySchema.yaml'
121+
application/vnd.openxmlformats-officedocument.wordprocessingml.document:
122+
schema:
123+
$ref: '../file/StringBinarySchema.yaml'
124+
application/dicom:
125+
schema:
126+
$ref: '../file/StringBinarySchema.yaml'
85127
responses:
86128
'201':
87129
$ref: '../responses/uploadFileToDocumentStore/201Response.yaml'

specification/components/stu3/schemas/file/FileContentTypeSchemaDownload.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

specification/components/stu3/schemas/file/FileContentTypeSchemaUpload.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

specification/components/stu3/schemas/responses/retrieveAttachment/200Response.yaml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,49 @@ headers:
1111
Content-Type:
1212
$ref: '../../headers/response/ContentTypeAttachmentsDownload.yaml'
1313
content:
14-
$ref: '../../file/FileContentTypeSchemaDownload.yaml'
14+
text/plain:
15+
schema:
16+
$ref: '../../file/StringBinarySchema.yaml'
17+
example: 'This is some example text.'
18+
text/html:
19+
schema:
20+
$ref: '../../file/StringBinarySchema.yaml'
21+
application/pdf:
22+
schema:
23+
$ref: '../../file/StringBinarySchema.yaml'
24+
text/xml:
25+
schema:
26+
$ref: '../../file/StringBinarySchema.yaml'
27+
text/rtf:
28+
schema:
29+
$ref: '../../file/StringBinarySchema.yaml'
30+
audio/basic:
31+
schema:
32+
$ref: '../../file/StringBinarySchema.yaml'
33+
audio/mpeg:
34+
schema:
35+
$ref: '../../file/StringBinarySchema.yaml'
36+
image/png:
37+
schema:
38+
$ref: '../../file/StringBinarySchema.yaml'
39+
image/gif:
40+
schema:
41+
$ref: '../../file/StringBinarySchema.yaml'
42+
image/jpeg:
43+
schema:
44+
$ref: '../../file/StringBinarySchema.yaml'
45+
image/tiff:
46+
schema:
47+
$ref: '../../file/StringBinarySchema.yaml'
48+
video/mpeg:
49+
schema:
50+
$ref: '../../file/StringBinarySchema.yaml'
51+
application/msword:
52+
schema:
53+
$ref: '../../file/StringBinarySchema.yaml'
54+
application/vnd.openxmlformats-officedocument.wordprocessingml.document:
55+
schema:
56+
$ref: '../../file/StringBinarySchema.yaml'
57+
application/dicom:
58+
schema:
59+
$ref: '../../file/StringBinarySchema.yaml'

0 commit comments

Comments
 (0)