From 89a6a90922df97ac7639ab22826b71413b838564 Mon Sep 17 00:00:00 2001 From: Oliwier Michalik Date: Thu, 26 Feb 2026 02:44:33 +0100 Subject: [PATCH 1/5] feat: implement custom apidoc generator that can handle vine, models and routes mostly automatically --- .idea/codeStyles/Project.xml | 8 + app/controllers/auth_controller.ts | 29 ++- app/models/user.ts | 10 + app/validators/auth.ts | 12 +- app/validators/common.ts | 6 +- app/validators/event.ts | 8 +- app/validators/jury_member.ts | 4 +- app/validators/organization.ts | 8 +- app/validators/score.ts | 6 +- app/validators/task.ts | 6 +- app/validators/task_registration.ts | 2 +- app/validators/team.ts | 10 +- commands/generate_spec.ts | 45 ++++ docs/generator/decorators.ts | 79 +++++++ docs/generator/index.ts | 328 ++++++++++++++++++++++++++++ docs/spec/openapi.json | 1 + package.json | 5 +- pnpm-lock.yaml | 167 +++++++++----- start/routes.ts | 18 ++ tsconfig.json | 2 +- 20 files changed, 671 insertions(+), 83 deletions(-) create mode 100644 commands/generate_spec.ts create mode 100644 docs/generator/decorators.ts create mode 100644 docs/generator/index.ts create mode 100644 docs/spec/openapi.json diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 1107b67..b9a6ebf 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,5 +1,13 @@ + +