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, swagger will not show the schema anymore:
if i have more than one class with the same name although different interface implementation, swagger will not show up the schema properly. it will result empty:
3) when generating json/yaml from nestjs/swagger, we get all "object" instead of real class names AND description/class of body/params don't show, but response does.
Can you please help me? It is for our project very important to know why of those issues.
Cheers
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