Releases: openapi-ts/openapi-typescript
Releases Β· openapi-ts/openapi-typescript
v6.2.2
π Bugfixes
- Fix path generation by @HiiiiD (#991)
- If no type is specified, type as
unknown
by @mitchell-merry (#1049) - Ensure not required parameters are created as optional properties by @AplusKminus (#1053)
- Fix missing type defs (#1072)
- De-duplicate unions by @mitchell-merry (#1069)
- Fix tuples type generation support by @liangskyli (#1011)
v6.2.1
v6.2.0
β¨ New Features
- New
--empty-objects-unknown
flag for better control over unspecified object typesβ default shape by @duncanbeevers (#1032)
π Bugfixes
- JSDoc improvements by @mitchell-merry (#1029)
- Fix readonly nullable properties by @mtth (#1036)
- Tiny QoL improvements to invalid schema errors (#1043)
v6.1.1
π Bug fixes
- Fix response key for HTTP ranges (#1010) @stefanmaric
- Escape constant string in generated schema (#1014) @mvdbeek
- Support fully-qualified refs as discriminator mapping values (#1017) @sgrimm
- Improve behavior of
allOf
+ required properties (#1027) @Swiftwork - Make params non-nullable even if all params are optional (#1022) @sgrimm
v6.1.0
β¨ New Features
- Adds webhook typings by @yacinehmito (#1001)
- Use undiciβs
fetch()
instead ofrequest()
which can be overridden locally by @yacinehmito (#1002) - Adds type helpers only when used by @imagoiq (#992)
π Bug fixes
v6.0.3
v6.0.2
v6.0.1
v6.0.0
β¨ New Features
- OpenAPI 3.1 support for
discriminator
and polymorphic types - New
transform()
andpostTransform()
hooks give you more control in overriding/extending generated types - Deep-linked remote schemas now work
--immutable-types
has a new-t
alias- Addition of
path.default
types
π Improvements
- Sped up type generation by ~3Γ by dropping Prettier & optimizing deep-object crawl speed
- More accurate types for
oneOf
/anyOf
/allOf
(#894) - Now ships modern
ESNext
code rather thanES2018
- Codebase cleanup; improved internal types & documentation
- Test cleanup, now powered by Vitest
π Bugfixes
π¨ Breaking Changes
- Dropped Prettier formatting and all formatting options. Now, simply format at your discretion (or not at all!)
- Dropped support for Swagger 2.0
- Dropped Node 14 support (it still works for now, but Node 14 bugs wonβt be fixed if any arise)
--version
was changed to return the version of this library (also by dropping Swagger 2.0 support the old usage was no longer needed)- Dropped
--raw-schema
. Your entry schema MUST be valid and complete (however, your$refs
to subschemas may be partials). - Dropped
--make-paths-enum
because it was incompatible with--path-params-as-types
- Dropped the CLI aliases
-it
and-ap
(specify the full--immutable-types
or--additional-properties
flag) - Empty content:
{}
now returnsnever
. Dropped the--content-never
flag as this is now the default behavior. - Renamed and upgraded the Node APIβs
formatter()
function totransform()
andpostTransform()
. Itβs an overall improvement on the original concept with even more power than before.
v5.4.0
β¨ New features
- New
--content-never
flag forcesnever
response body by @duncanbeevers (#905)
π Bugfixes
- Empty strings are now allowed for properties like
@default
by @duncanbeevers (#906) - Throws friendlier error on bad
--prettier-config
path by @duncanbeevers (#909) - Objects are now allowed for properties like
@default
by @duncanbeevers (#910) - Fixes
enum
export of operation paths by @duncanbeevers (#912)