We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger json outputs file which has empty fields so the documentation remains empty. Decorators are not working.
tsoa.json file:
{ "controllerPathGlobs": ["./src/controllers/**/*.controller.ts"], "modelPathGlobs": ["./src/models/**/*.model.ts"], "routes": { "routesDir": "./src/routes" }, "entryFile": "src/server.ts", "noImplicitAdditionalProperties": "throw-on-extras", "spec": { "outputDirectory": "public", "specVersion": 3 } }
Controller file: @Route('users') export class UserController { public user = Container.get(UserService); @Get('/') public getUsers = async (req: Request, res: Response, next: NextFunction) => { try { const findAllUsersData: User[] = await this.user.findAllUser(); res.status(200).json({ data: findAllUsersData, message: 'success' }); } catch (error) { next(error); } }; }
@Route('users') export class UserController { public user = Container.get(UserService); @Get('/') public getUsers = async (req: Request, res: Response, next: NextFunction) => { try { const findAllUsersData: User[] = await this.user.findAllUser(); res.status(200).json({ data: findAllUsersData, message: 'success' }); } catch (error) { next(error); } }; }
swagger.json file: { "components": { "examples": {}, "headers": {}, "parameters": {}, "requestBodies": {}, "responses": {}, "schemas": {}, "securitySchemes": {} }, "info": { "title": "erp-server", "version": "1.0.0", "description": "TypeScript + Mongoose + MongoDB + Express API Server", "license": { "name": "ISC" }, "contact": {} }, "openapi": "3.0.0", "paths": {}, "servers": [ { "url": "/" } ] }
{ "components": { "examples": {}, "headers": {}, "parameters": {}, "requestBodies": {}, "responses": {}, "schemas": {}, "securitySchemes": {} }, "info": { "title": "erp-server", "version": "1.0.0", "description": "TypeScript + Mongoose + MongoDB + Express API Server", "license": { "name": "ISC" }, "contact": {} }, "openapi": "3.0.0", "paths": {}, "servers": [ { "url": "/" } ] }
The text was updated successfully, but these errors were encountered:
Hello there muhammadharis1212 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
Sorry, something went wrong.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
No branches or pull requests
Swagger json outputs file which has empty fields so the documentation remains empty. Decorators are not working.
tsoa.json file:
{ "controllerPathGlobs": ["./src/controllers/**/*.controller.ts"], "modelPathGlobs": ["./src/models/**/*.model.ts"], "routes": { "routesDir": "./src/routes" }, "entryFile": "src/server.ts", "noImplicitAdditionalProperties": "throw-on-extras", "spec": { "outputDirectory": "public", "specVersion": 3 } }
Controller file:
@Route('users') export class UserController { public user = Container.get(UserService); @Get('/') public getUsers = async (req: Request, res: Response, next: NextFunction) => { try { const findAllUsersData: User[] = await this.user.findAllUser(); res.status(200).json({ data: findAllUsersData, message: 'success' }); } catch (error) { next(error); } }; }
swagger.json file:
{ "components": { "examples": {}, "headers": {}, "parameters": {}, "requestBodies": {}, "responses": {}, "schemas": {}, "securitySchemes": {} }, "info": { "title": "erp-server", "version": "1.0.0", "description": "TypeScript + Mongoose + MongoDB + Express API Server", "license": { "name": "ISC" }, "contact": {} }, "openapi": "3.0.0", "paths": {}, "servers": [ { "url": "/" } ] }
The text was updated successfully, but these errors were encountered: