OptionaladditionalWhether to include additional information or not.
If configured to be true, those properties would be added into each API
endpoinnt.
x-nestia-methodx-nestia-namespace x-nestia-jsDocTags`OptionalbeautifyWhether to beautify JSON content or not.
If you configure this property to be true, the swagger.json file
would be beautified with indentation (2 spaces) and line breaks. If you
configure numeric value instead, the indentation would be specified by
the number.
OptionaldecomposeDecompose query DTO.
If you configure this property to be true, the query DTO would be
decomposed into individual query parameters per each property. Otherwise
you set it to be false, the query DTO would be one object type which
contains all of query parameters.
OptionalinfoAPI information.
If omitted, package.json content would be used instead.
OptionalopenapiOpenAPI version.
If you configure this property to be 2.0 or 3.0, the newly generated
swagger.json file would follow the specified OpenAPI version. The newly
generated swagger.json file would be downgraded from the OpenAPI v3.1
specification by OpenApi.downgrade method.
Response path of the swagger.json.
If you've configured only directory, the file name would be the
swagger.json. Otherwise you've configured the full path with file name
and extension, the swagger.json file would be renamed to it.
OptionalsecuritySecurity schemes.
When generating swagger.json file through nestia, if your controllers
or theirs methods have a security key which is not enrolled in here
property, it would be an error.
OptionalserversList of server addresses.
OptionaltagsList of tag names with description.
It is possible to omit this property or skip some tag name even if the tag name is used in the API routes. In that case, the tag name would be used without description.
Of course, if you've written a comment like @tag {name} {description},
you can entirely replace this property specification.
OptionaloperationOperation ID generator.
Properties of the API endpoint.
Operation ID.
Building
swagger.jsonis also possible.