diff --git a/.changeset/famous-cooks-divide.md b/.changeset/famous-cooks-divide.md deleted file mode 100644 index 327b4044c..000000000 --- a/.changeset/famous-cooks-divide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hey-api/openapi-ts': patch ---- - -fix: forbid any body, path, or query parameters if not defined in spec diff --git a/.changeset/six-boxes-fry.md b/.changeset/six-boxes-fry.md deleted file mode 100644 index 631de5648..000000000 --- a/.changeset/six-boxes-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hey-api/openapi-ts': patch ---- - -fix: handle additionalProperties: boolean in experimental parser diff --git a/.changeset/six-eyes-travel.md b/.changeset/six-eyes-travel.md deleted file mode 100644 index d3b9bc55e..000000000 --- a/.changeset/six-eyes-travel.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@hey-api/openapi-ts': patch ---- - -fix: update schemas plugin to handle experimental 3.0.x parser - -This release adds an experimental parser for OpenAPI versions 3.0.x. In the future, this will become the default parser. If you're using OpenAPI 3.0 or newer, we encourage you to try it out today. - -You can enable the experimental parser by setting the `experimentalParser` boolean flag to `true` in your configuration file or CLI. - -```js -export default { - client: '@hey-api/client-fetch', - input: 'path/to/openapi.json', - output: 'src/client', - experimentalParser: true, -}; -``` - -```sh -npx @hey-api/openapi-ts -i path/to/openapi.json -o src/client -c @hey-api/client-fetch -e -``` - -The generated output should not structurally change, despite few things being generated in a different order. In fact, the output should be cleaner! That's the immediate side effect you should notice. If that's not true, please leave feedback in [GitHub issues](https://github.com/hey-api/openapi-ts/issues). - -Hey API parser marks an important milestone towards v1 of `@hey-api/openapi-ts`. More features will be added to the parser in the future and the original parser from `openapi-typescript-codegen` will be deprecated and used only for generating legacy clients. - -If you'd like to work with the parser more closely (e.g. to generate code not natively supported by this package), feel free to reach out with any feedback or suggestions. Happy parsing! 🎉 diff --git a/packages/openapi-ts/CHANGELOG.md b/packages/openapi-ts/CHANGELOG.md index 00715764e..302a4c8cf 100644 --- a/packages/openapi-ts/CHANGELOG.md +++ b/packages/openapi-ts/CHANGELOG.md @@ -1,5 +1,38 @@ # @hey-api/openapi-ts +## 0.54.4 + +### Patch Changes + +- [#1237](https://github.com/hey-api/openapi-ts/pull/1237) [`63ccc07`](https://github.com/hey-api/openapi-ts/commit/63ccc0775e24a096bc46ac7ff29b99b694aad621) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: forbid any body, path, or query parameters if not defined in spec + +- [#1235](https://github.com/hey-api/openapi-ts/pull/1235) [`7a1a419`](https://github.com/hey-api/openapi-ts/commit/7a1a419f07d5ad39e07265771b30d49a4b754a88) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle additionalProperties: boolean in experimental parser + +- [#1233](https://github.com/hey-api/openapi-ts/pull/1233) [`08baa77`](https://github.com/hey-api/openapi-ts/commit/08baa77afdc5e2c49d4789b20673e949951ab0b2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update schemas plugin to handle experimental 3.0.x parser + + This release adds an experimental parser for OpenAPI versions 3.0.x. In the future, this will become the default parser. If you're using OpenAPI 3.0 or newer, we encourage you to try it out today. + + You can enable the experimental parser by setting the `experimentalParser` boolean flag to `true` in your configuration file or CLI. + + ```js + export default { + client: '@hey-api/client-fetch', + input: 'path/to/openapi.json', + output: 'src/client', + experimentalParser: true, + }; + ``` + + ```sh + npx @hey-api/openapi-ts -i path/to/openapi.json -o src/client -c @hey-api/client-fetch -e + ``` + + The generated output should not structurally change, despite few things being generated in a different order. In fact, the output should be cleaner! That's the immediate side effect you should notice. If that's not true, please leave feedback in [GitHub issues](https://github.com/hey-api/openapi-ts/issues). + + Hey API parser marks an important milestone towards v1 of `@hey-api/openapi-ts`. More features will be added to the parser in the future and the original parser from `openapi-typescript-codegen` will be deprecated and used only for generating legacy clients. + + If you'd like to work with the parser more closely (e.g. to generate code not natively supported by this package), feel free to reach out with any feedback or suggestions. Happy parsing! 🎉 + ## 0.54.3 ### Patch Changes diff --git a/packages/openapi-ts/package.json b/packages/openapi-ts/package.json index 3d108d62b..eebcc5424 100644 --- a/packages/openapi-ts/package.json +++ b/packages/openapi-ts/package.json @@ -1,6 +1,6 @@ { "name": "@hey-api/openapi-ts", - "version": "0.54.3", + "version": "0.54.4", "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.", "homepage": "https://heyapi.dev/", "repository": {