kibana/packages/kbn-zod-helpers
Luke Elmers b6287708f6
Adds AGPL 3.0 license (#192025)
Updates files outside of x-pack to be triple-licensed under Elastic
License 2.0, AGPL 3.0, or SSPL 1.0.
2024-09-06 19:02:41 -06:00
..
src Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
index.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc
package.json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.md
tsconfig.json Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00

Helpers and utilities for Zod

Zod is a schema validation library with static type inference for TypeScript.

Helpers defined in this package:

  • Can be used in other packages and plugins to make it easier to define schemas with Zod, such as API schemas.
  • Are already used in packages/kbn-openapi-generator.
  • Are already used in x-pack/plugins/security_solution.

When you add some helper code to this package, please make sure that:

  • The code is generic and domain-agnostic (doesn't "know" about any domains such as Security or Observability).
  • The code is reusable and there are already a few use cases for it. Try to not generalize prematurely.