3.0.0 • Published 30 days ago

@geut/openapi-box v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
30 days ago

openapi-box

Generate TypeBox types from OpenApi V3 IDL + End-to-end typesafe HTTP client library.

It works for TypeScript and JavaScript.

Tests JavaScript Style Guide standard-readme compliant

Made by GEUT

Install

$ npm install @geut/openapi-box @sinclair/typebox

Usage

  1. Generate the schema from an OpenApi url (it can a be filepath too):
$ openapi-box https://petstore.swagger.io/v2/swagger.json
  1. Load your schemas into the End-to-end typesafe fetch client:
import { createClient } from './src/client.js'
import { schema } from './schema.js'

const client = createClient({
  schema,
  baseUrl: 'https://petstore.swagger.io/v2'
})
  1. Enjoy your types + validations out of the "box" :wink:: openapi

Issues

:bug: If you found an issue we encourage you to report it on github. Please specify your OS and the actions to reproduce it.

Contributing

:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this guideline.

License

MIT © A GEUT project

3.0.0

30 days ago

2.2.1

2 months ago

2.2.2

2 months ago

2.2.0

7 months ago

2.1.0

7 months ago

2.0.0

7 months ago

1.1.0

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago