Forum Discussion

topachi's avatar
topachi
New Contributor
2 years ago
Solved

issues with nestJS/swagger

Hello, i have a few issues regarding NESTJS/SWAGGER 1) missing namespace in swagger UI when it should be  2) if there are different classes/namespaces with the same class name, swagg...
  • Humashankar's avatar
    Humashankar
    2 years ago

    Hi topachi 

    Thanks for adding your clarification points:

    Verify that the decorator is being used correctly and double-check for any typos in the operationId property. If operationId isn't functioning as anticipated, try using separate path names for your controllers and methods to distinguish them in the Swagger UI. Also, make sure to check the version of NestJS and Swagger you're using, as the behavior may have changed in earlier versions

    To enable automatic generation of Swagger schema files from class information, set the environment variable SWAGGER_AUTO_SCHEMA_FILE to true.

    This will initiate NestJS/Swagger to create the schema files automatically.

    Regards