Releases: hey-api/openapi-ts
@hey-api/[email protected]
@hey-api/[email protected]
Patch Changes
-
#1253
01dee3d
Thanks @mrlubos! - fix: update sponsorship links -
#1266
d60d260
Thanks @mrlubos! - fix: correctly generate array when items are a oneOf array with length 1 -
#1265
691cdc2
Thanks @mrlubos! - fix: handle non-exploded array query parameters -
#1267
ff3aa4a
Thanks @mrlubos! - fix: handle discriminators in experimental parser
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
Patch Changes
-
#1237
63ccc07
Thanks @mrlubos! - fix: forbid any body, path, or query parameters if not defined in spec -
#1235
7a1a419
Thanks @mrlubos! - fix: handle additionalProperties: boolean in experimental parser -
#1233
08baa77
Thanks @mrlubos! - fix: update schemas plugin to handle experimental 3.0.x parserThis 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 totrue
in your configuration file or CLI.export default { client: '@hey-api/client-fetch', input: 'path/to/openapi.json', output: 'src/client', experimentalParser: true, };
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.
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 fromopenapi-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! 🎉
@hey-api/[email protected]
Patch Changes
-
#1230
3e65ae0
Thanks @mrlubos! - feat: add OpenAPI 3.0.x experimental parserThis 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 totrue
in your configuration file or CLI.export default { client: '@hey-api/client-fetch', input: 'path/to/openapi.json', output: 'src/client', experimentalParser: true, };
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.
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 fromopenapi-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! 🎉