Skip to content

Releases: openapi-ts/openapi-typescript

v6.2.2

26 Apr 03:58
Compare
Choose a tag to compare

πŸ› Bugfixes

v6.2.1

30 Mar 23:55
Compare
Choose a tag to compare

πŸ› Bugfixes

  • Fix $ref’d parameters missing (#1061)
  • Fix oneOf number const (#1056) by @qnp

v6.2.0

10 Mar 17:14
Compare
Choose a tag to compare

✨ New Features

  • New --empty-objects-unknown flag for better control over unspecified object types’ default shape by @duncanbeevers (#1032)

πŸ› Bugfixes

v6.1.1

23 Feb 16:18
Compare
Choose a tag to compare

πŸ› Bug fixes

v6.1.0

23 Nov 17:37
Compare
Choose a tag to compare

✨ New Features

πŸ› Bug fixes

v6.0.3

10 Nov 16:10
Compare
Choose a tag to compare

πŸ› Bugfixes

v6.0.2

10 Nov 02:46
Compare
Choose a tag to compare

πŸ› Bugfixes

  • Fixes #975 where #/components/examples were being parsed as schema objects

v6.0.1

09 Nov 04:37
Compare
Choose a tag to compare

πŸ› Bugfixes

  • Remove postinstall hook only meant for dev

v6.0.0

09 Nov 04:11
903fd34
Compare
Choose a tag to compare

✨ New Features

  • OpenAPI 3.1 support for discriminator and polymorphic types
  • New transform() and postTransform() 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 than ES2018
  • 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 returns never. Dropped the --content-never flag as this is now the default behavior.
  • Renamed and upgraded the Node API’s formatter() function to transform() and postTransform(). It’s an overall improvement on the original concept with even more power than before.

v5.4.0

02 Jun 03:36
Compare
Choose a tag to compare

✨ New features

πŸ› Bugfixes