From fe981b3f5cde9e48f18caaae9244cdd064d26ee3 Mon Sep 17 00:00:00 2001 From: Filippo Ledda Date: Mon, 15 Jan 2024 18:36:01 +0100 Subject: [PATCH] CH-109 applications dependencies update --- applications/volumemanager/server/requirements.txt | 2 +- .../server/volumemanager/models/base_model_.py | 4 ++-- applications/workflows/api/config.json | 2 +- applications/workflows/server/requirements.txt | 2 +- .../workflows/server/workflows_api/models/base_model_.py | 4 ++-- .../workflows/server/workflows_api/openapi/openapi.yaml | 9 ++++++--- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/applications/volumemanager/server/requirements.txt b/applications/volumemanager/server/requirements.txt index 70e1f0c5..be4c8a3a 100644 --- a/applications/volumemanager/server/requirements.txt +++ b/applications/volumemanager/server/requirements.txt @@ -8,4 +8,4 @@ werkzeug == 0.16.1; python_version=="3.5" or python_version=="3.4" swagger-ui-bundle >= 0.0.2 python_dateutil >= 2.6.0 setuptools >= 21.0.0 -Flask == 1.1.2 +Flask == 2.1.1 diff --git a/applications/volumemanager/server/volumemanager/models/base_model_.py b/applications/volumemanager/server/volumemanager/models/base_model_.py index ea49046e..1a2f7910 100644 --- a/applications/volumemanager/server/volumemanager/models/base_model_.py +++ b/applications/volumemanager/server/volumemanager/models/base_model_.py @@ -11,11 +11,11 @@ class Model(object): # openapiTypes: The key is attribute name and the # value is attribute type. - openapi_types = {} + openapi_types: typing.Dict[str, type] = {} # attributeMap: The key is attribute name and the # value is json key in definition. - attribute_map = {} + attribute_map: typing.Dict[str, str] = {} @classmethod def from_dict(cls: typing.Type[T], dikt) -> T: diff --git a/applications/workflows/api/config.json b/applications/workflows/api/config.json index 9e26dfee..fbb5d269 100644 --- a/applications/workflows/api/config.json +++ b/applications/workflows/api/config.json @@ -1 +1 @@ -{} \ No newline at end of file +{"packageName": "workflows_api"} \ No newline at end of file diff --git a/applications/workflows/server/requirements.txt b/applications/workflows/server/requirements.txt index 70e1f0c5..be4c8a3a 100644 --- a/applications/workflows/server/requirements.txt +++ b/applications/workflows/server/requirements.txt @@ -8,4 +8,4 @@ werkzeug == 0.16.1; python_version=="3.5" or python_version=="3.4" swagger-ui-bundle >= 0.0.2 python_dateutil >= 2.6.0 setuptools >= 21.0.0 -Flask == 1.1.2 +Flask == 2.1.1 diff --git a/applications/workflows/server/workflows_api/models/base_model_.py b/applications/workflows/server/workflows_api/models/base_model_.py index d532ae7b..1e0ea702 100644 --- a/applications/workflows/server/workflows_api/models/base_model_.py +++ b/applications/workflows/server/workflows_api/models/base_model_.py @@ -11,11 +11,11 @@ class Model(object): # openapiTypes: The key is attribute name and the # value is attribute type. - openapi_types = {} + openapi_types: typing.Dict[str, type] = {} # attributeMap: The key is attribute name and the # value is json key in definition. - attribute_map = {} + attribute_map: typing.Dict[str, str] = {} @classmethod def from_dict(cls: typing.Type[T], dikt) -> T: diff --git a/applications/workflows/server/workflows_api/openapi/openapi.yaml b/applications/workflows/server/workflows_api/openapi/openapi.yaml index c8e5420f..781e815a 100644 --- a/applications/workflows/server/workflows_api/openapi/openapi.yaml +++ b/applications/workflows/server/workflows_api/openapi/openapi.yaml @@ -11,7 +11,7 @@ servers: - description: Metacell host url: /api tags: -- description: standard creation, listing and retrieve +- description: "standard creation, listing and retrieve" name: Create and Access paths: /operations: @@ -100,7 +100,7 @@ paths: name: name required: true schema: - pattern: ^[0-9A-Za-z\s\-]+$ + pattern: "^[0-9A-Za-z\\s\\-]+$" type: string style: simple responses: @@ -136,7 +136,7 @@ paths: name: name required: true schema: - pattern: ^[0-9A-Za-z\s\-]+$ + pattern: "^[0-9A-Za-z\\s\\-]+$" type: string style: simple responses: @@ -167,10 +167,12 @@ components: createTime: 2016-08-29T09:12:33.001Z name: name message: "" + status: null - workflow: workflow createTime: 2016-08-29T09:12:33.001Z name: name message: "" + status: null properties: meta: $ref: '#/components/schemas/SearchResultData' @@ -197,6 +199,7 @@ components: createTime: 2016-08-29T09:12:33.001Z name: name message: "" + status: null properties: message: description: usually set when an error occurred