From 0015096e31d583e46b36281852f2b5469b8538fa Mon Sep 17 00:00:00 2001 From: Filip Ruzicka Date: Tue, 21 Apr 2026 15:31:20 +0200 Subject: [PATCH] Make MaterialPackage uuid optional GTINs cannot be reliably sourced for all brands, so UUID derivation (which depends on brand UUID + GTIN) is not always possible. Remove uuid from the required fields so material packages without GTINs can be added to the database without a UUID. --- data/packaging.yaml | 1 - schema/generated/opt_db_schema/material_package.schema.json | 1 - 2 files changed, 2 deletions(-) diff --git a/data/packaging.yaml b/data/packaging.yaml index e5245e4..6e9689b 100644 --- a/data/packaging.yaml +++ b/data/packaging.yaml @@ -141,7 +141,6 @@ objects: - name: uuid type: UUID primary_key: true - required_in_opt_db: true description: - Unique identifier of the product. - If not provided by the manufacturer, the UUID can be derived as specified in [the UUID section](/uuid). diff --git a/schema/generated/opt_db_schema/material_package.schema.json b/schema/generated/opt_db_schema/material_package.schema.json index 7e10f8b..30d3f95 100644 --- a/schema/generated/opt_db_schema/material_package.schema.json +++ b/schema/generated/opt_db_schema/material_package.schema.json @@ -71,7 +71,6 @@ } }, "required": [ - "uuid", "material", "nominal_netto_full_weight" ],