From 172d343945670dab62f1a1e85cba96346abb322b Mon Sep 17 00:00:00 2001 From: matusdrobuliak66 Date: Wed, 18 Dec 2024 13:30:58 +0100 Subject: [PATCH] openapi specs --- .../models/schemas/model_adapter.py | 1 + .../src/simcore_service_webserver/api/v0/openapi.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py b/services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py index e5a04e198c5..7765ad95980 100644 --- a/services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py +++ b/services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py @@ -141,4 +141,5 @@ class LicensedItemGet(BaseModel): assert set(LicensedItemGet.model_fields.keys()) == set( _LicensedItemGet.model_fields.keys() + - {"license_key"} # TODO: @bisgaard-itis please expose ) diff --git a/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml b/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml index 93cf60aa82c..27bdb777e6f 100644 --- a/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml +++ b/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml @@ -10342,6 +10342,11 @@ components: name: type: string title: Name + licenseKey: + anyOf: + - type: string + - type: 'null' + title: Licensekey licensedResourceType: $ref: '#/components/schemas/LicensedResourceType' pricingPlanId: @@ -10361,6 +10366,7 @@ components: required: - licensedItemId - name + - licenseKey - licensedResourceType - pricingPlanId - createdAt