Skip to content

Commit

Permalink
fixed file parameter, health and version error responses.
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimiras Desiatnikovas <[email protected]>
  • Loading branch information
riteris13 committed Apr 8, 2024
1 parent 0365bc4 commit ea5d314
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openapi/components/parameters/file.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: file
in: header
required: false
in: path
required: true
description: |
`file` header is used to indicate the file that needs to be retrieved form the object structure.
`file` parameter is used to indicate the file that needs to be retrieved form the object structure.
schema:
type: string
examples:
Expand Down
2 changes: 2 additions & 0 deletions openapi/paths/health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ get:
application/json:
schema:
$ref: ../components/schemas/health.yaml
'400':
$ref: ../components/responses/error400.yaml
'500':
$ref: ../components/responses/error500.yaml
'503':
Expand Down
2 changes: 2 additions & 0 deletions openapi/paths/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ get:
application/json:
schema:
$ref: ../components/schemas/version.yaml
'400':
$ref: ../components/responses/error400.yaml
'500':
$ref: ../components/responses/error500.yaml
'503':
Expand Down

0 comments on commit ea5d314

Please sign in to comment.