From 116dbaf29760886e7f1e3c23f9a8f397c2686256 Mon Sep 17 00:00:00 2001 From: jiatolentino Date: Wed, 24 Jun 2026 12:53:01 +0800 Subject: [PATCH 1/2] fix: make DiscoveryMatch.label optional for non-sensitive/ignore matches A non-sensitive or ignore discovery match carries no sensitivity label, but DiscoveryMatch required `label: str`, so parsing schema-discovery results that contained such a match (e.g. a scope.non_sensitive column, hit via the generate_ruleset path) raised a pydantic ValidationError. The schema_discovery CSV path never parsed the model, so this was latent until MongoDB document discovery exercised it. --- datamasque/client/models/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamasque/client/models/discovery.py b/datamasque/client/models/discovery.py index 7bccefa..4c35ae0 100644 --- a/datamasque/client/models/discovery.py +++ b/datamasque/client/models/discovery.py @@ -252,7 +252,7 @@ class DiscoveryMatch(BaseModel): model_config = ConfigDict(extra="allow") - label: str + label: Optional[str] = None categories: list[str] flagged_by: str description: str From c4362c818e199634044857af8374a385a03b67e3 Mon Sep 17 00:00:00 2001 From: jiatolentino Date: Wed, 24 Jun 2026 12:53:01 +0800 Subject: [PATCH 2/2] chore: release 1.1.1 --- HISTORY.rst | 5 +++++ pyproject.toml | 2 +- setup.cfg | 2 +- uv.lock | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index dc72f9a..9367c4c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,11 @@ History ======= +1.1.1 (2026-06-24) +------------------ + +* Made ``DiscoveryMatch.label`` optional. + 1.1.0 (2026-06-24) ------------------ diff --git a/pyproject.toml b/pyproject.toml index 1d226e4..eca07af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "datamasque-python" -version = "1.1.0" +version = "1.1.1" description = "Official Python client for the DataMasque data-masking API." authors = [ { name = "DataMasque Ltd" }, diff --git a/setup.cfg b/setup.cfg index 26b71a7..1022f00 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.1.0 +current_version = 1.1.1 commit = True tag = True diff --git a/uv.lock b/uv.lock index 31e21ef..777b461 100644 --- a/uv.lock +++ b/uv.lock @@ -428,7 +428,7 @@ toml = [ [[package]] name = "datamasque-python" -version = "1.1.0.dev0" +version = "1.1.1" source = { editable = "." } dependencies = [ { name = "pydantic" },