Skip to content

Commit 28e56ed

Browse files
author
Andrei Neagu
committed
Merge remote-tracking branch 'upstream/master' into pr-osparc-long-running-tasks-refactor-6
2 parents 7feeff6 + d928d88 commit 28e56ed

File tree

12 files changed

+333
-125
lines changed

12 files changed

+333
-125
lines changed

packages/models-library/src/models_library/api_schemas_webserver/functions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import datetime
22
from typing import Annotated, TypeAlias
33

4-
from pydantic import Field
4+
from pydantic import Field, HttpUrl
55

66
from ..functions import (
77
Function,
@@ -116,6 +116,10 @@
116116

117117
class RegisteredSolverFunctionGet(RegisteredSolverFunction, OutputSchema):
118118
uid: Annotated[FunctionID, Field(alias="uuid")]
119+
created_at: Annotated[datetime.datetime, Field(alias="creationDate")]
120+
modified_at: Annotated[datetime.datetime, Field(alias="lastChangeDate")]
121+
access_rights: FunctionAccessRights | None = None
122+
thumbnail: HttpUrl | None = None
119123

120124

121125
class RegisteredProjectFunctionGet(RegisteredProjectFunction, OutputSchema):
@@ -124,7 +128,7 @@ class RegisteredProjectFunctionGet(RegisteredProjectFunction, OutputSchema):
124128
created_at: Annotated[datetime.datetime, Field(alias="creationDate")]
125129
modified_at: Annotated[datetime.datetime, Field(alias="lastChangeDate")]
126130
access_rights: FunctionAccessRights | None = None
127-
thumbnail: str | None = None
131+
thumbnail: HttpUrl | None = None
128132

129133

130134
class SolverFunctionToRegister(SolverFunction, InputSchema): ...

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

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16078,6 +16078,9 @@ components:
1607816078
thumbnail:
1607916079
anyOf:
1608016080
- type: string
16081+
maxLength: 2083
16082+
minLength: 1
16083+
format: uri
1608116084
- type: 'null'
1608216085
title: Thumbnail
1608316086
type: object
@@ -16131,14 +16134,14 @@ components:
1613116134
type: string
1613216135
format: uuid
1613316136
title: Uuid
16134-
createdAt:
16137+
creationDate:
1613516138
type: string
1613616139
format: date-time
16137-
title: Createdat
16138-
modifiedAt:
16140+
title: Creationdate
16141+
lastChangeDate:
1613916142
type: string
1614016143
format: date-time
16141-
title: Modifiedat
16144+
title: Lastchangedate
1614216145
solverKey:
1614316146
type: string
1614416147
pattern: ^simcore/services/((comp|dynamic|frontend))/([a-z0-9][a-z0-9_.-]*/)*([a-z0-9-_]+[a-z0-9])$
@@ -16147,14 +16150,26 @@ components:
1614716150
type: string
1614816151
pattern: ^(0|[1-9]\d*)(\.(0|[1-9]\d*)){2}(-(0|[1-9]\d*|\d*[-a-zA-Z][-\da-zA-Z]*)(\.(0|[1-9]\d*|\d*[-a-zA-Z][-\da-zA-Z]*))*)?(\+[-\da-zA-Z]+(\.[-\da-zA-Z-]+)*)?$
1614916152
title: Solverversion
16153+
accessRights:
16154+
anyOf:
16155+
- $ref: '#/components/schemas/FunctionAccessRights'
16156+
- type: 'null'
16157+
thumbnail:
16158+
anyOf:
16159+
- type: string
16160+
maxLength: 2083
16161+
minLength: 1
16162+
format: uri
16163+
- type: 'null'
16164+
title: Thumbnail
1615016165
type: object
1615116166
required:
1615216167
- inputSchema
1615316168
- outputSchema
1615416169
- defaultInputs
1615516170
- uuid
16156-
- createdAt
16157-
- modifiedAt
16171+
- creationDate
16172+
- lastChangeDate
1615816173
- solverKey
1615916174
- solverVersion
1616016175
title: RegisteredSolverFunctionGet

0 commit comments

Comments
 (0)