You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/brown-paws-design.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,10 @@
2
2
'@hey-api/openapi-ts': minor
3
3
---
4
4
5
-
feat: add symbol api
5
+
feat: Symbol API
6
+
7
+
### Symbol API
8
+
9
+
This release adds the Symbol API, which significantly reduces the risk of naming collisions. While the generated output should only include formatting changes, this feature introduces breaking changes to the Plugin API that affect custom plugins.
10
+
11
+
We will update the [custom plugin guide](https://heyapi.dev/openapi-ts/plugins/custom) once the Plugin API becomes more stable.
description: Learn about the core plugins provided by Hey API.
4
+
---
5
+
6
+
# Core
7
+
8
+
Apart from being responsible for the default output, core plugins are the foundation for other plugins. Instead of creating their own primitives, other plugins can reuse the artifacts from core plugins. This results in a smaller output size and a better user experience.
9
+
10
+
## Options
11
+
12
+
Hey API provides the following core plugins.
13
+
14
+
-[TypeScript](/openapi-ts/plugins/typescript)
15
+
-[SDK](/openapi-ts/plugins/sdk)
16
+
-[Transformers](/openapi-ts/plugins/transformers)
17
+
-[Schemas](/openapi-ts/plugins/schemas)
18
+
19
+
Need another core plugin? Let us know your interest by [opening an issue](https://github.com/hey-api/openapi-ts/issues).
Copy file name to clipboardExpand all lines: docs/openapi-ts/get-started.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import { embedProject } from '../embed'
9
9
10
10
# Get Started
11
11
12
-
[@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts) is an OpenAPI to TypeScript codegen trusted over 2,000,000 times each month to generate reliable API clients and SDKs. The code is [MIT-licensed](/openapi-ts/license) and free to use. Discover available features below or view our [roadmap](https://github.com/orgs/hey-api/discussions/1495) to learn what's coming next.
12
+
[@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts) is an OpenAPI to TypeScript codegen trusted over 2,500,000 times each month to generate reliable API clients and SDKs. The code is [MIT-licensed](/openapi-ts/license) and free to use. Discover available features below or view our [roadmap](https://github.com/orgs/hey-api/discussions/1495) to learn what's coming next.
Copy file name to clipboardExpand all lines: docs/openapi-ts/migrating.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,21 @@ description: Migrating to @hey-api/openapi-ts.
7
7
8
8
While we try to avoid breaking changes, sometimes it's unavoidable in order to offer you the latest features. This page lists changes that require updates to your code. If you run into a problem with migration, please [open an issue](https://github.com/hey-api/openapi-ts/issues).
9
9
10
+
## v0.83.0
11
+
12
+
### Symbol API
13
+
14
+
This release adds the Symbol API, which significantly reduces the risk of naming collisions. While the generated output should only include formatting changes, this feature introduces breaking changes to the Plugin API that affect custom plugins.
15
+
16
+
We will update the [custom plugin guide](/openapi-ts/plugins/custom) once the Plugin API becomes more stable.
17
+
18
+
### Removed `groupByTag` Pinia Colada option
19
+
20
+
This option has been removed to provide a more consistent API across plugins. We plan to bring it back in a future release.
21
+
10
22
## v0.82.0
11
23
12
-
### Added Hooks API
24
+
### Hooks API
13
25
14
26
This release adds the [Hooks API](/openapi-ts/configuration/parser#hooks), giving you granular control over which operations generate queries and mutations. As a result, we tightened the previous behavior and POST operations no longer generate queries by default. To preserve the old behavior, add a custom matcher.
Copy file name to clipboardExpand all lines: docs/openapi-ts/output.md
+32-8Lines changed: 32 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,7 @@ description: Learn about files generated with @hey-api/openapi-ts.
5
5
6
6
# Output
7
7
8
-
Learn about files generated with `@hey-api/openapi-ts`.
9
-
10
-
::: tip
11
-
Your actual output depends on your Hey API configuration. It may contain a different number of files and their contents might differ.
12
-
:::
8
+
Every generated file in your output folder is created by a plugin. This page describes the default output, but similar logic applies to all plugins.
13
9
14
10
## Overview
15
11
@@ -30,13 +26,41 @@ my-app/
30
26
└── package.json
31
27
```
32
28
33
-
Each file is an artifact generated by a Hey API plugin. This is the default output, we will cover customizing it in this section. These files also form the base for third-party plugins.
29
+
Your actual output depends on your Hey API configuration. It may contain a different number of files and their contents might differ.
34
30
35
31
Let's go through each file in the `src/client` folder and explain what it looks like, what it does, and how to use it.
36
32
37
-
## Index
33
+
## Client
34
+
35
+
`client.gen.ts` is generated by [client plugins](/openapi-ts/clients). If you choose to generate SDKs (enabled by default), we use the Fetch client unless specified otherwise.
The contents of this file are consumed by SDKs, but you can also import `client` in your application to perform additional configuration or send manual requests.
48
+
49
+
### Bundle
50
+
51
+
Client plugins provide their bundles inside `client` and `core` folders. The contents of these folders don't depend on the provided input. Everything inside these folders serves as a scaffolding so the generated code can make HTTP requests.
52
+
53
+
## TypeScript
54
+
55
+
You can learn more on the [TypeScript](/openapi-ts/plugins/typescript) page.
56
+
57
+
## SDK
58
+
59
+
You can learn more on the [SDK](/openapi-ts/plugins/sdk) page.
60
+
61
+
## Barrel File
38
62
39
-
`index.ts` is the only file not generated by a specific plugin. It's meant for convenience and by default, it re-exports every artifact generated by default plugins (TypeScript and SDK).
63
+
`index.ts` is not generated by any specific plugin. It's meant for convenience and by default, it re-exports every artifact generated by default plugins (TypeScript and SDK).
0 commit comments