From b5662a3b8111c6fe6c01c72ba96c67c34bfd7f70 Mon Sep 17 00:00:00 2001 From: garciam Date: Fri, 16 Aug 2024 11:27:46 +0200 Subject: [PATCH] make unit changes optional --- cdsobs/service_definition/service_definition_models.py | 2 +- tests/{ => scripts}/upgrade_service_definition.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/{ => scripts}/upgrade_service_definition.py (100%) diff --git a/cdsobs/service_definition/service_definition_models.py b/cdsobs/service_definition/service_definition_models.py index af200a6..51d6135 100644 --- a/cdsobs/service_definition/service_definition_models.py +++ b/cdsobs/service_definition/service_definition_models.py @@ -64,7 +64,7 @@ class UnitChange(BaseModel): class Description(BaseModel, extra="allow"): - description: StrNotBlank + description: str dtype: str | None = None long_name: StrNotBlank units: StrNotBlank | None = None diff --git a/tests/upgrade_service_definition.py b/tests/scripts/upgrade_service_definition.py similarity index 100% rename from tests/upgrade_service_definition.py rename to tests/scripts/upgrade_service_definition.py