From 7a7cb720f54f748b9b3c90c4b4fcc09fc2f5b56f Mon Sep 17 00:00:00 2001 From: Eleanor Date: Tue, 17 Mar 2026 15:55:46 -0700 Subject: [PATCH] only include constraint in payload when explicitly set --- liminal/entity_schemas/operations.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/liminal/entity_schemas/operations.py b/liminal/entity_schemas/operations.py index 8f068bc..75d067a 100644 --- a/liminal/entity_schemas/operations.py +++ b/liminal/entity_schemas/operations.py @@ -217,10 +217,11 @@ def __init__( def execute(self, benchling_service: BenchlingService) -> dict[str, Any]: tag_schema = self._validate(benchling_service) - updated_tag_schema = tag_schema.update_schema_props( - self.update_props.model_dump(exclude_unset=True) - ) + update_diff = self.update_props.model_dump(exclude_unset=True) + updated_tag_schema = tag_schema.update_schema_props(update_diff) update = UpdateTagSchemaModel(**updated_tag_schema.model_dump()) + if "constraint_fields" not in update_diff: + update.constraint = None return update_tag_schema(benchling_service, tag_schema.id, update.model_dump()) def describe_operation(self) -> str: