Skip to content

v0.9.1 — DLP nullable hotfix

Choose a tag to compare

@cdot65 cdot65 released this 23 May 18:43
· 25 commits to main since this release
ababfeb

Hotfix for #158 — live api.dlp.paloaltonetworks.com responses failing Zod validation because .optional() rejects null and the API emits null (not undefined) for unset fields. Surfaced via prisma-airs-cli PR #78 smoke test.

Bug Fixes — DLP Response Schemas

  • AuditResponseSchema: all 4 fields → .nullish(); created_at / updated_at widened to z.union([z.string(), z.number()]).nullish() (API has been observed emitting epoch-ms integers).
  • DataFilteringProfileResponseSchema, DataPatternResponseSchema, DataProfileResponseSchema, DictionaryResponseSchema, DlpReportSchema: every top-level .optional().nullish().
  • Request schemas unchanged (API tolerates omit on write; SDK should not emit explicit nulls on PUT/POST).
  • Patch request schemas unchanged (jsonNullable() already handles JSON Merge Patch null semantics).

Test coverage

10 new null-acceptance + numeric-timestamp acceptance tests across the 5 DLP response specs. Full suite: 1246 / 1246 pass.

PR: #159