@hey-api/openapi-ts 0.76.0 → 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,13 +36,13 @@
36
36
  - clients for your runtime (Fetch API, Axios, Next.js, Nuxt, etc.)
37
37
  - plugin ecosystem to reduce third-party boilerplate
38
38
  - custom plugins and custom clients
39
- - [integration](https://heyapi.dev/openapi-ts/integrations) with Hey API platform
39
+ - [integration](https://heyapi.dev/openapi-ts/integrations) with Hey API Platform
40
40
 
41
41
  ## Dashboard
42
42
 
43
- Hey API is an ecosystem of products helping you build better APIs. Superpower your codegen and APIs with our platform.
43
+ Hey API is an ecosystem of products helping you build better APIs. Superpower your codegen and APIs with Hey API Platform.
44
44
 
45
- [Sign In](https://app.heyapi.dev) to Hey API platform.
45
+ [Sign In](https://app.heyapi.dev) to Hey API Platform.
46
46
 
47
47
  ## Sponsors
48
48
 
@@ -109,6 +109,14 @@ Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).
109
109
  </picture>
110
110
  </a>
111
111
  </td>
112
+ <td align="center">
113
+ <a href="https://kutt.it/KkqSaw" target="_blank">
114
+ <picture height="34px">
115
+ <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/cella-logo-wordmark-480w.webp">
116
+ <img alt="Cella logo" height="34px" src="https://heyapi.dev/images/cella-logo-wordmark-480w.jpeg">
117
+ </picture>
118
+ </a>
119
+ </td>
112
120
  </tr>
113
121
  </tbody>
114
122
  </table>
@@ -163,7 +171,7 @@ Most people run `@hey-api/openapi-ts` via CLI. To do that, add a script to your
163
171
  }
164
172
  ```
165
173
 
166
- The above script can be executed by running `npm run openapi-ts` or equivalent command in other package managers. Next, we need to create a [configuration](https://heyapi.dev/openapi-ts/configuration) file and move our options from Quick Start to it.
174
+ The above script can be executed by running `npm run openapi-ts` or equivalent command in other package managers. Next, we will create a [configuration](https://heyapi.dev/openapi-ts/configuration) file and move our options from Quick Start to it.
167
175
 
168
176
  ### Node.js
169
177
 
@@ -217,19 +225,27 @@ Alternatively, you can use `openapi-ts.config.js` and configure the export state
217
225
 
218
226
  ### Input
219
227
 
220
- Input is the first thing you must define. It can be a path, URL, or a string content resolving to an OpenAPI specification. Hey API supports all valid OpenAPI versions and file formats.
228
+ You must set the input so we can load your OpenAPI specification. It can be a path or URL, object containing a path or URL, or an object representing an OpenAPI specification. Hey API supports all valid OpenAPI versions and file formats.
221
229
 
222
230
  > If you use an HTTPS URL with a self-signed certificate in development, you will need to set [`NODE_TLS_REJECT_UNAUTHORIZED=0`](https://github.com/hey-api/openapi-ts/issues/276#issuecomment-2043143501) in your environment.
223
231
 
224
232
  ### Output
225
233
 
226
- Output is the next thing to define. It can be either a string pointing to the destination folder or a configuration object containing the destination folder path and optional settings (these are described below).
234
+ You must set the output so we know where to generate your files. It can be a path to the destination folder or an object containing the destination folder path and optional settings.
227
235
 
228
236
  > You should treat the output folder as a dependency. Do not directly modify its contents as your changes might be erased when you run `@hey-api/openapi-ts` again.
229
237
 
238
+ ## Parser
239
+
240
+ We parse your input before making it available to plugins. While configuring the parser is optional, it's the perfect place to modify or validate your input if needed.
241
+
242
+ ## Plugins
243
+
244
+ Plugins are responsible for generating artifacts from your input. By default, Hey API will generate TypeScript interfaces and SDK from your OpenAPI specification. You can add, remove, or customize any of the plugins. In fact, we highly encourage you to do so!
245
+
230
246
  ### Client
231
247
 
232
- Clients are responsible for sending the actual HTTP requests. Using clients is not required, but you must add a client to `plugins` if you're generating SDKs (enabled by default).
248
+ Clients are responsible for sending the actual HTTP requests. Using clients is not required, but you must add a client to `plugins` if you're generating SDKs (we default to Fetch).
233
249
 
234
250
  ### Native Clients
235
251
 
@@ -240,10 +256,6 @@ Clients are responsible for sending the actual HTTP requests. Using clients is n
240
256
 
241
257
  Don't see your client? [Build your own](https://heyapi.dev/openapi-ts/clients/custom) or let us know your interest by [opening an issue](https://github.com/hey-api/openapi-ts/issues).
242
258
 
243
- ## Plugins
244
-
245
- Plugins are responsible for generating artifacts from your input. By default, Hey API will generate TypeScript interfaces and SDK from your OpenAPI specification. You can add, remove, or customize any of the plugins. In fact, we highly encourage you to do so!
246
-
247
259
  ### Native Plugins
248
260
 
249
261
  These plugins help reduce boilerplate associated with third-party dependencies. Hey API natively supports the most popular packages. Please open an issue on [GitHub](https://github.com/hey-api/openapi-ts/issues) if you'd like us to support your favorite package.
@@ -285,9 +297,9 @@ The following plugins are planned but not in development yet. You can help us pr
285
297
 
286
298
  Don't see your plugin? [Build your own](https://heyapi.dev/openapi-ts/plugins/custom) or let us know your interest by [opening an issue](https://github.com/hey-api/openapi-ts/issues).
287
299
 
288
- ## Migration Guides
300
+ ## Migrating
289
301
 
290
- [OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating#openapi-typescript-codegen)
302
+ You can learn more on the [Migrating](https://heyapi.dev/openapi-ts/migrating) page.
291
303
 
292
304
  ## License
293
305