Refactor auto-generated schemas and types formatting
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 42s

Updated the formatting for auto-generated schemas, types, and related files to adhere to consistent coding standards (e.g., double quotes, indentation). No functional changes were made, ensuring behavior remains identical.
This commit is contained in:
2025-03-05 10:13:33 +01:00
parent ffa3f2ffd3
commit c61ad52331
12 changed files with 1193 additions and 914 deletions

View File

@@ -1,28 +1,27 @@
import {defineConfig} from '@hey-api/openapi-ts';
import { defineConfig } from "@hey-api/openapi-ts";
import path from "path";
const API_URL = process.env.NEXT_PUBLIC_BACKEND_API_URL || 'http://localhost:8000';
const API_URL =
process.env.NEXT_PUBLIC_BACKEND_API_URL || "http://localhost:8000";
const OPENAPI_URL = `${API_URL}/api/v1/openapi.json`;
const OUTPUT_DIR = path.resolve(__dirname, './src/client');
const OUTPUT_DIR = path.resolve(__dirname, "./src/client");
// const OPENAPI_FILE = path.resolve(__dirname, './openapi.json');
export default defineConfig({
input:
OPENAPI_URL,
output: {
format: 'prettier',
lint: 'eslint',
path: OUTPUT_DIR,
input: OPENAPI_URL,
output: {
format: "prettier",
lint: "eslint",
path: OUTPUT_DIR,
},
plugins: [
"@hey-api/client-axios",
"@hey-api/schemas",
"@hey-api/sdk",
{
enums: "javascript",
name: "@hey-api/typescript",
},
plugins: [
'@hey-api/client-axios',
'@hey-api/schemas',
'@hey-api/sdk',
{
enums: 'javascript',
name: '@hey-api/typescript',
},
'@tanstack/react-query',
],
});
"@tanstack/react-query",
],
});