segmentio / typewriter

Type safety + intellisense for your Segment analytics
https://segment.com/docs/protocols/typewriter/
MIT License
227 stars 53 forks source link

fix: validateAgainstSchema called on dev mode #274

Closed oscb closed 1 year ago

oscb commented 1 year ago

Fixes the validate against schema function calls on dev mode builds for AJS and Node generators.

Refactored the cleanups we do to the JSONSchema and added an extra step for replacing id with $id per JSONSchema draft 7 spec to play correctly with new versions of AJV.