tsoa
the tsoa configuration file
| Type | object |
|---|---|
| File match |
**/tsoa.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/tsoa/latest.json |
| Source | https://www.schemastore.org/tsoa.json |
Validate with Lintel
npx @lintel/lintel check
JSON Schema for the tsoa configuration file
All of
Definitions
Authentication Module for express, hapi and koa
Base API path; e.g. the '/v1' in https://myapi.com/v1
IOC module; e.g. './inversify/ioc' where IOC container named iocContainer is defined (https://github.com/inversify/InversifyJS)
Middleware provider.
Override the Middleware template
Routes directory; generated routes.ts (which contains the generated code wiring up routes using middleware of choice) will be dropped here
Routes filename; the filename of the generated route file ('routes.ts' by default)
Base API path; e.g. the 'v1' in https://myapi.com/v1
Contact Information
3 nested properties
The email address of the contact person/organization.
The identifying name of the contact person/organization.
API Info url The URL pointing to the contact information.
API description; defaults to npm package description
API host, expressTemplate.g. localhost:3000 or myapi.com
API license; defaults to npm package license
API name; defaults to npm package name
Generated SwaggerConfig.json will output here
Security Definitions Object A declaration of the security schemes available to be used in the specification. This does not enforce the security schemes on the operations and only serves to provide the relevant details for each scheme.
Extend generated swagger spec with this object Note that generated properties will always take precedence over what get specified here
Alter how the spec is merged to generated swagger spec. Possible values:
- 'immediate' is overriding top level elements only thus you can not append a new path or alter an existing value without erasing same level elements.
- 'recursive' proceed to a deep merge and will concat every branches or override or create new values if needed. @see https://www.npmjs.com/package/merge
- 'deepmerge' uses
deepmergeto merge, which will concat object branches and concat arrays as well @see https://www.npmjs.com/package/deepmerge The default is set to immediate so it is not breaking previous versions.
Major OpenAPI version to generate; defaults to version 2 when not specified Possible values:
- 2: generates OpenAPI version 2.
- 3: generates OpenAPI version 3.
Swagger Tags Information for your API
API version number; defaults to npm package version