js-sdk-contrib icon indicating copy to clipboard operation
js-sdk-contrib copied to clipboard

Add Zod Validation Hook

Open beeme1mr opened this issue 3 years ago • 1 comments

Add Zod Validation Hook

Reasoning

I want to add a hook which performs validation using Zod.

  • Zod is a TypeScript-first schema based validator with static type inference
  • Static types can be passed as generics to the OpenFeature resolves methods for additional type safety.

TODO:

  • [ ] generate hook via tooling
  • [ ] implement Hook interface
  • [ ] add tests
  • [ ] complete README

Keep in mind the CONTRIBUTING guidelines: https://github.com/open-feature/js-sdk-contrib/blob/main/CONTRIBUTING.md

beeme1mr avatar Oct 14 '22 12:10 beeme1mr

assign me

Xundan91 avatar Dec 03 '24 05:12 Xundan91