openapi-schema-tools
TypeScript icon, indicating that this package has built-in type declarations

0.0.30 • Public • Published

OpenAPI Schema Tools

Motivation

OpenAPI Schema tools are split into many different libraries that are owned and maintained by different people, they are all different, work differently, only prodive specific function, some of them are inefficient and have a big bundle size.

Description

Light weight library

Provides tools such as:

  • SchemaMocker - Creates mocks from a given schema.
  • SchemaContext - Creates schemas context providing deRef method.
  • SchemaSatisfier - Prodives methods to ensure that given value satisfies given schema.
  • SchemaConverter - Converts schema to another type (currenly only to zod).

Types:

  • SchemaInfer - A namespace that provides tools for infering schema from parts of OpenAPI Document.
  • SchemaResolve - A namespace that provides tools for resolving different schema types.
  • ResolveSchema - A type that resolves any schema (including $ref's) deeply into a primitive.

Readme

Keywords

none

Package Sidebar

Install

npm i openapi-schema-tools

Weekly Downloads

7

Version

0.0.30

License

MIT

Unpacked Size

326 kB

Total Files

39

Last publish

Collaborators

  • framemuse