OptionalbaseOptionalcontactContact Information
Optionalemail?: stringThe email address of the contact person/organization.
Optionalname?: stringThe identifying name of the contact person/organization.
Optionalurl?: stringAPI Info url The URL pointing to the contact information.
OptionaldescriptionAPI description; defaults to npm package description
OptionaldisableBase API prefix slash toggle e.g. the 'v1' with toggle true will be https://myapi.comv1 Otherwise, http://myapi.com/v1
Only available with the specVersion 3
OptionalhostAPI host, expressTemplate.g. localhost:3000 or myapi.com
OptionallicenseAPI license; defaults to npm package license
OptionalnameAPI name; defaults to npm package name
OptionaloperationTemplate string for generating operation ids. This should be a valid handlebars template and is provided with the following context:
Generated SwaggerConfig.json will output here
OptionalrootApplies a default security to the entire API. Can be overridden with
OptionalschemesOptionalsecuritySecurity 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.
OptionalserversAPI servers, expressTemplate.g. [production.api.com, staging.api.com]
Only available with the specVersion 3
OptionalspecExtend generated swagger spec with this object Note that generated properties will always take precedence over what get specified here
OptionalspecBase-name of swagger.json or swagger.yaml.
@default: "swagger"
OptionalspecAlter how the spec is merged to generated swagger spec. Possible values:
ts-deepmerge to merge, which will concat object branches and concat arrays as wellOptionalspecMajor OpenAPI version to generate; defaults to version 2 when not specified Possible values:
OptionaltagsSwagger Tags Information for your API
OptionaltermsLink to the page that describes the terms of service. Must be in the URL format.
OptionaluseSets a title for inline objects for responses and requestBodies This helps to generate more consistent clients
OptionalversionAPI version number; defaults to npm package version
OptionalxEnable x-enum-varnames support
Optionalyaml
Base API path; e.g. the 'v1' in https://myapi.com/v1