open-feature/js-sdk-contrib

Add Zod Validation Hook

Offen

#122 geöffnet am 14.10.2022

 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)TypeScript (80 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (73 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 15T 23h) (14 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide