mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Add typescript support and automatic openapi client generation from ninja
This commit is contained in:
10
openapi-ts.config.ts
Normal file
10
openapi-ts.config.ts
Normal file
@ -0,0 +1,10 @@
|
||||
// biome-ignore lint/correctness/noNodejsModules: this only used at compile time
|
||||
const path = require("node:path");
|
||||
import { defineConfig } from "@hey-api/openapi-ts";
|
||||
|
||||
// biome-ignore lint/style/noDefaultExport: needed for openapi-ts
|
||||
export default defineConfig({
|
||||
client: "@hey-api/client-fetch",
|
||||
input: path.resolve(__dirname, "./staticfiles/generated/openapi/schema.json"),
|
||||
output: path.resolve(__dirname, "./staticfiles/generated/openapi"),
|
||||
});
|
Reference in New Issue
Block a user