Releases: lukeautry/tsoa
Releases · lukeautry/tsoa
Release list
Allowing anonymous nested objects
You asked for the ability to not have to always make an interface for every time. We listened. :)
Enjoy our first swing at fixing #50 which allows you to have inline nested objects without having to define an interface first.
union and intersection types can be used with OAS 3.0
If you set specVersion to be 3 in your tsoa.json file's swagger configuration, you can now use unions (i.e. IThing | IOtherThing) and intersections (i.e. IThing & IOtherThing). Thanks goes out to @WoH for his efforts.
Note: This is not available in specVersion 2 because Swagger does not support oneOf and allOf. However, OpenAPI 3.0 does.
excess property enhancements, ref name fixes, cache fixes, and controllerPathGlob fix
- enhances
"noImplicitAdditionalProperties"to allow for two different behaviors:"silently-remove-extras"or"throw-on-extras". Read more at: https://github.com/lukeautry/tsoa#how-to-ensure-no-additional-properties-come-in-at-runtime - fixes an issue where the cache would prevent references from being updated: #417
- fixes an issue where a nested generic type would not get a unique name: #427
- fixes an issue where reference names would sometimes have invalid characters: #428
- fixes an issue where references would not automatically be generated even if
controllerPathGlobwas set: #430
lint fix
bug fixes and lint easing
- consumers of tsoa can use ESLint more easily since the auto-generated files will no longer be linted (which is helpful since your rules might be more strict): #368
- prevents koa users from having a TypeScript compiler error if they had enabled "no any": #412
- Bug fixes for OpenAPI 3.0 generation: #401
auto-generation help
- adds warnings to the auto-generated
routes.tsfile so developers know to not update it manually
2.4.5: Merge pull request #410 from dgreene1/master
v2.4.5
automatic controller discover + noImplicitAdditionalProperties
Major enhancements:
- You can configure tsoa to automatically find your controller. Read more here: https://github.com/lukeautry/tsoa#consuming-generated-routes
noImplicitAdditionalPropertieswhich makes theroutes.tscode enforce that request models don't have any other properties that aren't defined on the interface. Read more here: https://github.com/lukeautry/tsoa#how-to-ensure-no-additional-properties-come-in-at-runtime
Security:
- tsoa passes
yarn auditagain
v1.3.0
- Support Query array type
- Support custom response header (#89)
- Support Tsoa config yaml format (#133)
- Support generate swagger yaml format
- Support string, number and boolan UnionType (#5)
- Support AnyKeyword (#114)
- update route schema and update type
- Change swagger enum inline type to enum definitions
- Add new rule for tslint
- Add Tsoa CLI
tsoa swagger --yaml - Add Tsoa CLI
tsoa swagger --json - Fix set status not work #94
- Fix validate
- Set query array collectionFormat, default to multi
- Create file for Circle CI