0.13.0 • Published 2 years ago

@spec-validator/utils v0.13.0

Weekly downloads
173
License
Apache-2.0
Repository
github
Last release
2 years ago

spec-validator

The main rationale of the package is to ensure that a developer defines structure of service's data once and in one place and all other representations of that structure are deduced dynamically without any code generation.

A developer can create a type safe REST API with:

  • run-time payload validation
  • build-time type checking
  • dynamic API docs' generation (e.g. OpenAPI)
  • type inference and autocompletion in the editor

and do so entirely with TypeScript in one place without wrtitng even a single line of JSON schemas or YAML based specs (though those are generated at runtime later on).

Please got through the ideas' document before diving into the API.

Packages

  • @spec-validator/validator

    Core validation logic - the necessary bits to glue payload specifications with TypeScript datastructures.

    yarn add @spec-validator/validator

  • @spec-validator/rest-api-server

    REST API primitives such as a binding to node's http server and type-safe specification of HTTP protocol.

    yarn add @spec-validator/rest-api-server

  • @spec-validator/open-api-endpoint

    Endpoint decorators to generate Open API based documentation for the routes defined using the rest-api-server.

    yarn add @spec-validator/open-api-endpoint

  • @spec-validator/doc-tester

    A tool to validate TypeScript snippets within Markdown files.

    yarn add --dev @spec-validator/open-api-endpoint

0.13.0

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.6.1

3 years ago

0.5.0

3 years ago

0.4.8

3 years ago

0.4.7

3 years ago

0.4.5

3 years ago

0.4.6

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.19

3 years ago

0.2.18

3 years ago

0.2.17

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago