Questions tagged [nestjs-swagger]

The OpenAPI specification is a language-agnostic definition format used to describe RESTful APIs. Nest provides a dedicated module that allows generating such a specification by leveraging decorators.

Resources

152 questions
-1
votes
1 answer

Is it possible to have generic type in swagger spec in nest js?

I'm implementing a POST endpoint which takes such a DTO as an input: export class GenericEventDto { @ApiProperty({ type: D }) // <- does not work @Expose() data: D @ApiProperty({ type: A }) @Expose() attributes: A // <- same …
Rusty Gold
  • 19
  • 1
  • 4
-1
votes
1 answer

NestJS / Swagger - Can't Import the Module

I am creating a boilerplate nestjs app. I want to add @nestjs/swagger to project but getting import error. Can't import the module. npm install --save @nestjs/swagger@4.8.0 --force I tried above command after getting errors. Deleted and…
Erenn
  • 625
  • 6
  • 18
1 2 3
10
11