Skip to content

Commit fb86e3e

Browse files
committed
docs: add README
1 parent 82276d5 commit fb86e3e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI TypeScript definitions
2+
3+
This package contains TypeScript definitions for OpenAPI. It may be useful in all kind of TypeScript projects that work with OpenAPI directly, for example, in code generators, in documentation generators and other kinds of projects.
4+
5+
Supported OpenAPI versions:
6+
7+
- [3.1.0](https://spec.openapis.org/oas/v3.1.0)
8+
9+
Since OpenAPI specification relies on JSON Schema specification, this package also has [@fosfad/json-schema-typescript-definitions](https://github.com/fosfad/json-schema-typescript-definitions) package in its dependencies which provides type definitions for JSON Schema.
10+
11+
## Getting started
12+
13+
Install the definitions:
14+
15+
```bash
16+
npm install @fosfad/openapi-typescript-definitions
17+
```
18+
19+
Import `OpenAPI` (and other needed types):
20+
21+
```typescript
22+
import { OpenAPI } from '@fosfad/openapi-typescript-definitions/3.1.0';
23+
```

0 commit comments

Comments
 (0)