5.0.6 • Published 10 months ago
@geut/openapi-box v5.0.6
openapi-box
Generate TypeBox types from OpenApi V3
IDL + End-to-end typesafe HTTP client library.
It works for TypeScript and JavaScript.
Install
$ npm install @geut/openapi-box @sinclair/typebox
Usage
- Generate the schema from an OpenApi url (it can a be filepath too):
$ openapi-box https://petstore3.swagger.io/api/v3/openapi.json
- Load your schemas into the End-to-end typesafe
fetch
client:
import { schema } from './schema.js'
import { createClient } from './src/client.js'
const client = createClient({
schema,
baseUrl: 'https://petstore.swagger.io/v2'
})
- Enjoy your types + validations out of the "box" :wink::
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
5.0.6
10 months ago
5.0.5
11 months ago
5.0.4
11 months ago
5.0.3
11 months ago
5.0.2
11 months ago
5.0.1
11 months ago
5.0.0
11 months ago
3.0.1
1 year ago
4.0.1
11 months ago
4.0.0
1 year ago
3.0.0
1 year ago
2.2.1
1 year ago
2.2.2
1 year ago
2.2.0
2 years ago
2.1.0
2 years ago
2.0.0
2 years ago
1.1.0
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago