chore: moving towards agentic development
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-04-24 21:12:26 -04:00
parent df3e602015
commit b6eb692c27
179 changed files with 2880 additions and 866 deletions

View File

@@ -0,0 +1,19 @@
import { mkdir, writeFile } from 'node:fs/promises';
const url = process.env.OPENAPI_URL ?? 'http://localhost:5080/swagger/v1/swagger.json';
const output = new URL('../../shared/openapi/openapi.json', import.meta.url);
console.log(`Fetching OpenAPI schema from ${url}`);
const response = await fetch(url);
if (!response.ok) {
throw new Error(`Failed to fetch OpenAPI schema: ${response.status} ${response.statusText}`);
}
const schema = await response.text();
await mkdir(new URL('../../shared/openapi', import.meta.url), { recursive: true });
await writeFile(output, schema);
console.log(`Wrote ${output.pathname}`);