WICG / attribution-reporting-api

Attribution Reporting API
https://wicg.github.io/attribution-reporting-api/
Other
370 stars 173 forks source link

Expose common validation/serialization interface for each header #1374

Closed apasel422 closed 4 months ago

apasel422 commented 4 months ago

This makes it easier to guarantee similar operation between the web validator and the command-line one while eliminating redundant logic.

We separate option-construction for the JSON validators from context creation, which is an internal detail of their operation, which enables further encapsulation.