open-feature/js-sdk-contrib

Add Zod Validation Hook

开放

#122 创建于 2022年10月14日

 (1 条评论) (1 个反应) (0 位负责人)TypeScript (80 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (73 个星标)
PR 合并指标
 (平均合并 15天 23小时) (30 天内合并 14 个 PR)

描述

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

贡献者指南