Skip to content

Commit cdabc90

Browse files
authored
🐛Webserver: wrong openapi (#7283)
1 parent f48b2d3 commit cdabc90

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

api/specs/web-server/_storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
FileUploadCompletionBody,
1818
FileUploadSchema,
1919
LinkType,
20+
PathMetaDataGet,
2021
PresignedLink,
2122
)
2223
from models_library.api_schemas_webserver.storage import (
@@ -58,7 +59,7 @@ async def list_storage_locations():
5859

5960
@router.get(
6061
"/storage/locations/{location_id}/paths",
61-
response_model=CursorPage[FileMetaDataGet],
62+
response_model=CursorPage[PathMetaDataGet],
6263
)
6364
async def list_storage_paths(
6465
_path: Annotated[StorageLocationPathParams, Depends()],

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6071,7 +6071,7 @@ paths:
60716071
content:
60726072
application/json:
60736073
schema:
6074-
$ref: '#/components/schemas/CursorPage_FileMetaDataGet_'
6074+
$ref: '#/components/schemas/CursorPage_PathMetaDataGet_'
60756075
/v0/storage/locations/{location_id}/datasets:
60766076
get:
60776077
tags:
@@ -8410,11 +8410,11 @@ components:
84108410
required:
84118411
- priceDollars
84128412
title: CreateWalletPayment
8413-
CursorPage_FileMetaDataGet_:
8413+
CursorPage_PathMetaDataGet_:
84148414
properties:
84158415
items:
84168416
items:
8417-
$ref: '#/components/schemas/FileMetaDataGet'
8417+
$ref: '#/components/schemas/PathMetaDataGet'
84188418
type: array
84198419
title: Items
84208420
total:
@@ -8450,7 +8450,7 @@ components:
84508450
type: object
84518451
required:
84528452
- items
8453-
title: CursorPage[FileMetaDataGet]
8453+
title: CursorPage[PathMetaDataGet]
84548454
DatCoreFileLink:
84558455
properties:
84568456
store:
@@ -12423,6 +12423,29 @@ components:
1242312423
required:
1242412424
- value
1242512425
title: PatchRequestBody
12426+
PathMetaDataGet:
12427+
properties:
12428+
path:
12429+
type: string
12430+
format: path
12431+
title: Path
12432+
description: the path to the current path
12433+
display_path:
12434+
type: string
12435+
format: path
12436+
title: Display Path
12437+
description: the path to display with UUID replaced
12438+
file_meta_data:
12439+
anyOf:
12440+
- $ref: '#/components/schemas/FileMetaDataGet'
12441+
- type: 'null'
12442+
description: if filled, this is the file meta data of the s3 object
12443+
additionalProperties: false
12444+
type: object
12445+
required:
12446+
- path
12447+
- display_path
12448+
title: PathMetaDataGet
1242612449
PaymentMethodGet:
1242712450
properties:
1242812451
idr:

0 commit comments

Comments
 (0)