Skip to content

Commit d0340e3

Browse files
Update content/openapi/types-and-parameters.md
Co-authored-by: John Biundo <[email protected]>
1 parent 86faa2a commit d0340e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/openapi/types-and-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Based on the `CreateCatDto`, the following model definition Swagger UI will be c
1515

1616
<figure><img src="/assets/swagger-dto.png" /></figure>
1717

18-
As you can see, the definition is empty although the class has a few declared properties. In order to make the class properties visible to the `SwaggerModule`, we have to either annotate them with the `@ApiProperty()` decorator or use a CLI plugin (read more in the **Plugin** section) which will do it automatically:
18+
As you can see, the definition is empty although the class has a few declared properties. In order to make the class properties visible to the `SwaggerModule`, we have to either annotate them with the `@ApiProperty()` decorator or use the CLI plugin (read more in the **Plugin** section) which will do it automatically:
1919

2020
```typescript
2121
import { ApiProperty } from '@nestjs/swagger';

0 commit comments

Comments
 (0)