open-feature/js-sdk-contrib

Add Zod Validation Hook

オープン

#122 opened on 2022/10/14

 (1 件のコメント) (1 件のリアクション) (0 人の担当者)TypeScript (80 件のフォーク)auto 404
enhancementgood first issue

Repository metrics

Stars
 (73 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド