Skip to content

feat: expose the document path on a schema discovery result - #78

Merged
kw-datamasque merged 1 commit into
mainfrom
DM-4428-nested-document-masking
Nov 18, 2026
Merged

kw-datamasque merged 1 commit into
mainfrom
DM-4428-nested-document-masking

Conversation

@jiatolentino

@jiatolentino jiatolentino commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Adds an optional path field to SchemaDiscoveryColumn: where a document-database field sits within its document, as a list of keys with * for an array position, such as ["contact", "*", "email"]. The result's column holds the same path joined with dots. It is None for relational columns, and results stored by DataMasque 3.26.16 or earlier.

The field already came through untyped through extra="allow". This declares it, so it is typed and documented. It uses the existing JsonPath (list[str | int]), so the client is never stricter than the server.

Tests: unit tests for a nested path, an integer path segment, a result without a path, and selecting a nested finding for generation by its column.

@jiatolentino jiatolentino self-assigned this Nov 9, 2026
@jiatolentino
jiatolentino force-pushed the DM-4428-nested-document-masking branch from 1d41694 to 99be3cf Compare November 10, 2026 22:41
@jiatolentino
jiatolentino marked this pull request as ready for review November 11, 2026 01:40
Comment thread tests/test_discovery.py Resolved
Comment thread HISTORY.rst Resolved
@jiatolentino
jiatolentino force-pushed the DM-4428-nested-document-masking branch from 99be3cf to 9203d92 Compare November 13, 2026 00:34
@jiatolentino jiatolentino changed the title feat: DM-4438 expose the document path on a schema discovery result feat: expose the document path on a schema discovery result Nov 13, 2026
@kw-datamasque
kw-datamasque force-pushed the DM-4428-nested-document-masking branch from 9203d92 to 0b09c72 Compare November 18, 2026 05:29
@kw-datamasque
kw-datamasque force-pushed the DM-4428-nested-document-masking branch from 0b09c72 to 9adc9e9 Compare November 18, 2026 08:35
@kw-datamasque
kw-datamasque merged commit 8f9f5c0 into main Nov 18, 2026
9 checks passed
@kw-datamasque
kw-datamasque deleted the DM-4428-nested-document-masking branch November 18, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants