Skip to content

Releases: openapi-ts/openapi-typescript

kebab-case support

12 Jun 15:48
62d635f
Compare
Choose a tag to compare

🐛 Bugfixes

  • Swagger properties in kebab-case would break generation unless they were converted to --camelcase (#13). This has been fixed! 🎉 You still have the option of converting to --camelcase, but now you can keep kebab-case too if needed

Wrapper support

11 Jun 21:23
2dc048d
Compare
Choose a tag to compare

🦍 Major changes

  • Adds --wrapper option, letting you specify any namespace or module wrapper for exporting types. See the README for full description

⚠️ Breaking changes

  • --namespace and --export options are now deprecated, in favor of the more versatile --wrapper

Export namespaces

19 Apr 01:37
9ee11b4
Compare
Choose a tag to compare

🐣 Minor changes

  • Now supports an --export option to export namespaces thanks to @tpdewolf

v1.1.2

25 Mar 14:27
Compare
Choose a tag to compare

🐛 Bugfixes

  • No longer generates empty interfaces (caused by top-level definitions being array types, referencing other definitions)

v1.1.1

19 Mar 21:54
Compare
Choose a tag to compare

🐣 Minor changes

  • Improves enum generation to be simpler-to-use (values are now just hardcoded inline, rather than trying to use TypeScript enums).

v1.1.0

19 Mar 19:56
Compare
Choose a tag to compare

🦍 Major changes

  • Changes default behavior to preserve snake_case properties (you can still convert with --camelcase)

🐣 Minor changes

Handle object types

18 Dec 20:52
Compare
Choose a tag to compare

🐛Bugfixes

  • Falls back to object if it can’t grab properties

Namespace support

13 Dec 22:12
Compare
Choose a tag to compare

🦍Major changes

  • Different API, now requires namespace as 2nd parameter. Because namespacing is good.

🐛Bugfixes

  • Maybe a bug; maybe not—if a Swagger spec had a common name like Error it would break your build if another type extended from it

Fix enum bug

13 Dec 21:40
Compare
Choose a tag to compare

🐛Bugfixes

  • Fixes bug where number enums names could be generated.

enum support

13 Dec 21:39
Compare
Choose a tag to compare

🐣Minor changes

  • Supports TypeScript enums