fix: swagger apis path to src/ + update stale signup/verify test refs
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled

- swagger.ts: changed apis glob from dist/routes/*.js to src/routes/*.ts
  so OpenAPI spec includes demo endpoints during tests (fixes 6 test failures)
- Dockerfile: copy src/ to final stage for runtime swagger-jsdoc
- Updated stale /v1/signup/verify test refs to /v1/signup/free (endpoint
  was removed when free tier was discontinued)
This commit is contained in:
OpenClaw Subagent 2026-03-18 20:11:17 +01:00
parent 9e1d4d86fb
commit 392fc029fe
4 changed files with 8 additions and 6 deletions

View file

@ -12,8 +12,8 @@ describe("OpenAPI spec accuracy", () => {
expect(spec.paths).not.toHaveProperty("/v1/billing/success");
});
it("should mark /v1/signup/verify as deprecated", () => {
expect(spec.paths["/v1/signup/verify"]?.post?.deprecated).toBe(true);
it("should mark /v1/signup/free as deprecated", () => {
expect(spec.paths["/v1/signup/free"]?.post?.deprecated).toBe(true);
});
describe("Rate limit headers", () => {