@@ -35,10 +35,7 @@ paths:
3535 description : Validate your yaml
3636 operationId : validateContent
3737 requestBody :
38- description : |-
39- Yaml can be sent as a base64 encoded file or a yaml string.
40-
41- ContentType is specifying the type of yaml content being sent
38+ description : " Yaml can be sent as a base64 encoded file or a yaml string. \n\n ContentType is specifying the type of yaml content being sent"
4239 content :
4340 application/json :
4441 schema :
@@ -145,64 +142,64 @@ paths:
145142 detail : " Test error"
146143 instance : " /example"
147144 /validation/generate-report :
148- post :
149- tags :
150- - validate
151- summary : Generate status report
152- description : Accepts result data as the request body and returns a generated status report as a downloadable excel file.
153- operationId : generateReport
154- requestBody :
155- required : true
145+ post :
146+ tags :
147+ - validate
148+ summary : Generate status report
149+ description : Accepts result data as the request body and returns a generated status report as a downloadable excel file.
150+ operationId : generateReport
151+ requestBody :
152+ required : true
153+ content :
154+ application/json :
155+ schema :
156+ type : object
157+ required :
158+ - result
159+ properties :
160+ result :
161+ type : array
162+ items :
163+ $ref : ' #/components/schemas/RapLPCustomSpectralDiagnosticItem'
164+ description : An array of result items used to generate the Excel report.
165+ responses :
166+ ' 200 ' :
167+ description : Successful operation
168+ content :
169+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet :
170+ schema :
171+ type : string
172+ format : binary
173+ example :
174+ headers :
175+ Content-Disposition :
176+ schema :
177+ type : string
178+ description : Header to indicate the filename for the downloaded file.
179+ ' 400 ' :
180+ description : BAD_REQUEST
156181 content :
157182 application/json :
158183 schema :
159- type : object
160- required :
161- - result
162- properties :
163- result :
164- type : array
165- items :
166- $ref : ' #/components/schemas/RapLPCustomSpectralDiagnosticItem'
167- description : An array of result items used to generate the Excel report.
168- responses :
169- ' 200 ' :
170- description : Successful operation
171- content :
172- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet :
173- schema :
174- type : string
175- format : binary
176- example :
177- headers :
178- Content-Disposition :
179- schema :
180- type : string
181- description : Header to indicate the filename for the downloaded file.
182- ' 400 ' :
183- description : BAD_REQUEST
184- content :
185- application/json :
186- schema :
187- $ref : ' #/components/schemas/ProblemDetailsDto'
188- example :
189- type : " about:blank"
190- title : " Test title"
191- status : 400
192- detail : " Test error"
193- instance : " /example"
194- ' 500 ' :
195- description : INTERNAL_SERVER_ERROR
196- content :
197- application/json :
198- schema :
199- $ref : ' #/components/schemas/ProblemDetailsDto'
200- example :
201- type : " about:blank"
202- title : " Test title"
203- status : 500
204- detail : " Test error"
205- instance : " /example"
184+ $ref : ' #/components/schemas/ProblemDetailsDto'
185+ example :
186+ type : " about:blank"
187+ title : " Test title"
188+ status : 400
189+ detail : " Test error"
190+ instance : " /example"
191+ ' 500 ' :
192+ description : INTERNAL_SERVER_ERROR
193+ content :
194+ application/json :
195+ schema :
196+ $ref : ' #/components/schemas/ProblemDetailsDto'
197+ example :
198+ type : " about:blank"
199+ title : " Test title"
200+ status : 500
201+ detail : " Test error"
202+ instance : " /example"
206203 /validation/url :
207204 post :
208205 tags :
@@ -211,10 +208,7 @@ paths:
211208 description : Validate your yaml from remote url
212209 operationId : validateUrl
213210 requestBody :
214- description : |-
215- OpenApi yaml is fetched from remote server and validated on server.
216- Feature must be enabled explicitly on server.
217-
211+ description : " OpenApi yaml is fetched from remote server and validated on server. \n Feature must be enabled explicitly on server."
218212 content :
219213 application/json :
220214 schema :
@@ -327,7 +321,6 @@ paths:
327321 status : 500
328322 detail : " Test error"
329323 instance : " /example"
330-
331324components :
332325 schemas :
333326 ValidationRules :
@@ -495,7 +488,6 @@ components:
495488 required :
496489 - id
497490 - omrade
498-
499491 PopulatedDiagnosticRuleInfo :
500492 allOf :
501493 - $ref : ' #/components/schemas/DiagnosticRuleInfo'
@@ -506,7 +498,6 @@ components:
506498 example : " OK"
507499 required :
508500 - status
509-
510501 DiagnosticReport :
511502 type : object
512503 properties :
@@ -520,7 +511,6 @@ components:
520511 required :
521512 - Notering
522513 - regler
523-
524514 DiagnosticRuleinfoSet :
525515 type : object
526516 # additionalProperties: false
@@ -537,13 +527,11 @@ components:
537527 type : array
538528 items :
539529 $ref : ' #/components/schemas/DiagnosticRuleInfo'
540-
541530 RapLPDiagnostic :
542531 type : object
543532 properties :
544533 _ruleSets :
545534 $ref : ' #/components/schemas/DiagnosticRuleinfoSet'
546-
547535 ValidationResponseDto :
548536 type : object
549537 properties :
@@ -558,4 +546,3 @@ components:
558546 required :
559547 - result
560548 - report
561-
0 commit comments