You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_metadata() drops the pii flag the API returns for each field #61
get_metadata() discards the pii flag the API returns for each field. DatasetMetadata.from_dict builds every field as a DatasetField with four keys, type, active, required and description, and drops everything else. On datasets of personal data, pii is the field a caller needs most.
pii is never read. Neither are normalize and validation_rules, which the API also returns.
Why it matters
A caller building a data-retention policy, a redaction step, or a field allowlist would reasonably read pii from the schema instead of hard-coding a list. Through the SDK they get no field marked, which reads as "no personal data here" on a dataset of people.
The JavaScript SDK passes the raw field object through, so the flag survives there. The two SDKs disagree on the same endpoint.
Expected
Add pii: bool = False to DatasetField and read it in from_dict. Keeping the raw dict on the model, for keys the SDK does not model yet, would stop the next new key being dropped the same way.
Activity