Parse + validate a raw selector value (e.g. from adagents.json). Throws
PublisherPropertySelectorParseError on schema violations. Returns
the input cast to a typed PublisherPropertySelector on success — does
NOT fan compact-form selectors out (use
expandPublisherPropertySelector for that).
Enforces every rule a vanilla Ajv validation of publisher-property-selector.json
would (XOR between publisher_domain / publisher_domains, by_id
exclusion from the compact form, required predicate fields per
selection_type) so callers that don't run a JSON Schema validator still
get the same fail-closed behavior.
Parse + validate a raw selector value (e.g. from
adagents.json). Throws PublisherPropertySelectorParseError on schema violations. Returns the input cast to a typedPublisherPropertySelectoron success — does NOT fan compact-form selectors out (use expandPublisherPropertySelector for that).Enforces every rule a vanilla Ajv validation of
publisher-property-selector.jsonwould (XOR betweenpublisher_domain/publisher_domains,by_idexclusion from the compact form, required predicate fields perselection_type) so callers that don't run a JSON Schema validator still get the same fail-closed behavior.