Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 955 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 955 Bytes

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.