Skip to content

Commit b477c45

Browse files
Update content/openapi/cli-plugin.md
Co-authored-by: John Biundo <[email protected]>
1 parent 48abb72 commit b477c45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/openapi/cli-plugin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ The Swagger plugin will automatically:
1717

1818
Please, note that your filenames **must have** one of the following suffixes: `['.dto.ts', '.entity.ts']` (e.g., `create-user.dto.ts`) in order to be analysed by the plugin.
1919

20+
If you are using a different suffix, you can adjust the plugin's behavior by specifying the `dtoFileNameSuffix` option (see below).
21+
2022
Previously, if you wanted to provide an interactive experience with the Swagger UI,
2123
you had to duplicate a lot of code to let the package know how your models/components should be declared in the specification. For example, you could define a simple `CreateUserDto` class as follows:
2224

0 commit comments

Comments
 (0)