├── .github └── workflows │ └── ci.yml ├── .gitignore ├── README.md ├── example ├── client │ ├── index.ts │ └── openapi.d.ts ├── config.ts ├── controller │ ├── demo.ts │ └── user.ts ├── main.ts ├── middleware │ └── errorHandle.ts ├── routes │ └── index.ts └── schemas │ ├── extra.ts │ └── user.ts ├── intro.md ├── lib ├── decorator.ts ├── index.ts ├── registry.ts ├── swagger-builder.ts ├── swagger-html.ts ├── swagger-router.ts └── utils │ ├── constant.ts │ └── container.ts ├── package.json ├── test ├── e2e.test.ts ├── index.test.ts └── router.test.ts └── tsconfig.json /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/README.md -------------------------------------------------------------------------------- /example/client/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/client/index.ts -------------------------------------------------------------------------------- /example/client/openapi.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/client/openapi.d.ts -------------------------------------------------------------------------------- /example/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/config.ts -------------------------------------------------------------------------------- /example/controller/demo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/controller/demo.ts -------------------------------------------------------------------------------- /example/controller/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/controller/user.ts -------------------------------------------------------------------------------- /example/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/main.ts -------------------------------------------------------------------------------- /example/middleware/errorHandle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/middleware/errorHandle.ts -------------------------------------------------------------------------------- /example/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/routes/index.ts -------------------------------------------------------------------------------- /example/schemas/extra.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/schemas/extra.ts -------------------------------------------------------------------------------- /example/schemas/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/example/schemas/user.ts -------------------------------------------------------------------------------- /intro.md: -------------------------------------------------------------------------------- 1 | # Introduction 2 | 3 | WIP 4 | -------------------------------------------------------------------------------- /lib/decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/lib/decorator.ts -------------------------------------------------------------------------------- /lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/lib/index.ts -------------------------------------------------------------------------------- /lib/registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/lib/registry.ts -------------------------------------------------------------------------------- /lib/swagger-builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/lib/swagger-builder.ts -------------------------------------------------------------------------------- /lib/swagger-html.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/lib/swagger-html.ts -------------------------------------------------------------------------------- /lib/swagger-router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/lib/swagger-router.ts -------------------------------------------------------------------------------- /lib/utils/constant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/lib/utils/constant.ts -------------------------------------------------------------------------------- /lib/utils/container.ts: -------------------------------------------------------------------------------- 1 | export const Container = new Map(); 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/package.json -------------------------------------------------------------------------------- /test/e2e.test.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/test/index.test.ts -------------------------------------------------------------------------------- /test/router.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/test/router.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cody2333/koa-swagger-decorator/HEAD/tsconfig.json --------------------------------------------------------------------------------