Skip to content

Releases: lukeautry/tsoa

union and intersection types can be used with OAS 3.0

22 Aug 20:54
ecdd050
Compare
Choose a tag to compare

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

19 Aug 18:47
5c101bb
Compare
Choose a tag to compare
  • 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 controllerPathGlob was set: #430

lint fix

16 Aug 16:36
2c9cb59
Compare
Choose a tag to compare
  • This fixes one minor bug that was causing issues for users that have a line length lint rule.

bug fixes and lint easing

13 Aug 15:48
200b887
Compare
Choose a tag to compare
  • 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

12 Aug 18:47
0ac6a1a
Compare
Choose a tag to compare
  • adds warnings to the auto-generated routes.ts file so developers know to not update it manually

2.4.5: Merge pull request #410 from dgreene1/master

12 Aug 18:49
0ac6a1a
Compare
Choose a tag to compare

automatic controller discover + noImplicitAdditionalProperties

12 Aug 14:42
c58ab60
Compare
Choose a tag to compare

Major enhancements:

Security:

  • tsoa passes yarn audit again

v1.3.0

27 Jul 23:20
Compare
Choose a tag to compare
  • 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