Skip to content

Releases: openapi-ts/openapi-typescript

v3.1.0

09 Mar 19:22
Compare
Choose a tag to compare

New features

  • Remote schema loading now follows redirects (#510)
  • New --auth flag to access private schemas (#508)
  • npm version now ships with ESM package exports for better interop between ESM & CommonJS (#509)

🐛 Bugfixes

📝 Other Notes

  • Now uses a quicker build/release process for easier building

v3.0.4

04 Mar 04:46
Compare
Choose a tag to compare

🐛 Bugfixes

  • If using OpenAPI 2.0, and you didn’t have definitions, an unexpected error was encountered. This is now fixed.

v3.0.3

02 Mar 22:28
Compare
Choose a tag to compare

🐛 Bugfixes

  • Improves handling of complex oneOf by @gr2m (#491)

v3.0.2

02 Mar 16:27
Compare
Choose a tag to compare

🐛 Bugfixes

v3.0.1

05 Feb 01:08
Compare
Choose a tag to compare

🐛 Bugfixes

  • Fixed generation bug where responseBodies that contained both a $ref and operationId generated invalid TypeScript (#464)

v3.0.0

25 Jan 17:05
Compare
Choose a tag to compare

Features

  • Adds long-requested paths support to Swagger v2 schemas
  • Adds more compact comments, resulting more readable generated types

🐛 Bugfixes

  • Fixes bugs in paths generation (missing $refs support in areas, inconsistent generation)

⚠️ Breaking changes

  • This is marked as a breaking version for safety. Swagger v2 users should be able to migrate to 3.0.0 with no problems; OpenAPI v3 users will either experience no changes or minor changes that should be an overall improvement.

📝 Other Notes

  • In version 2.x of this library, OpenAPI v3 support was added, and it was a separate part of the codebase. This major release combines Swagger v2 and OpenAPI v3 code together. Though they are different schemas, they have much more in common than they do in difference. Combining the code will make this library easier to maintain, easier to test, and more stable overall.

v2.5.0

14 Jan 23:56
Compare
Choose a tag to compare

🐥 Minor Changes

  • Comments can now be single-line, saving some needed space in the specs (#443)

🐛 Bugfixes

  • additionalProperties.oneOf is now generating as expected (#442)

v2.4.2

19 Nov 06:29
Compare
Choose a tag to compare

🐛 Bugfixes

v2.4.1...v2.4.2

v2.4.1

12 Nov 22:10
Compare
Choose a tag to compare

🐛 Bugfixes

v2.4.0...v2.4.1

v2.4.0

11 Nov 18:41
Compare
Choose a tag to compare

🐸 New features

  • Do you have really complicated response objects that are a pain in the butt to reference in TS? Good news! There‘s a new operations interface by @gr2m that you can use, and it doesn‘t affect the existing API (#353) bf009b7

v2.3.4...v2.4.0