Skip to content

v0.9.2

Choose a tag to compare

@cdot65 cdot65 released this 23 May 19:20
· 24 commits to main since this release
e40e153

Bug Fixes — DLP Nested Helper Schemas

Follow-up to v0.9.1. The earlier sweep widened top-level Response fields but missed nested helpers — live api.dlp.paloaltonetworks.com still returned null on inner fields and failed Zod.

Schema changes (all backward compatible)

  • DataPatternMatchingRulesSchema — 5 fields → .nullish(). Primary fix for data-patterns list Zod failures.
  • ExpressionTreeNodeSchema (recursive via z.lazy) — operator_type, rule_item, sub_expressions.nullish(). Primary fix for data-profiles list Zod failures. ExpressionTreeNode TS interface widened to allow null.
  • DetectionRuleItemSchema — 23 inner fields → .nullish().
  • MultiProfileDataNodeSchema, both DetectionRule variants → .nullish().
  • MetadataCriterionSchema, DataPatternDetectionConfigSchema.supported_confidence_levels, DataPatternTagsSchema.nullish().
  • 8 nested helpers on DataFilteringProfile (AppExclusion, URLExclusion, Exclusions, SourceAttributes, DestinationAttributes, ExceptionRuleDTO, DataFilteringRuleDTO, DataFilteringDetails) → .nullish().
  • DictionaryMetaDataDTOSchema, DictionaryTagsSchema, ResourceModelExtensionSchema.nullish().

Side-effect (acceptable)

Shared helpers also slightly relax request schemas — SDK user code wouldn't intentionally serialize null on these inner fields. Top-level *RequestSchema files remain strict.

Test coverage

9 new test cases. All 1255 tests pass.

Closes #160.