diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-07-12 22:36:13 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-07-12 22:36:13 +0200 |
| commit | 8bfebc6abbcb734877db138ab0cece68ed8ea36a (patch) | |
| tree | 7193c978e1abcbc7dbaf83c338c57c57b1c8450a /client/package.json | |
| parent | c6478102f563467e502f7f0ebb6df8bbb13fdee6 (diff) | |
client: Add openapi-typescript and generated schema from openapi spec of server
Diffstat (limited to 'client/package.json')
| -rw-r--r-- | client/package.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/package.json b/client/package.json index 086213c..a09dab4 100644 --- a/client/package.json +++ b/client/package.json @@ -11,7 +11,8 @@ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "format": "prettier --write .", - "lint": "prettier --check . && eslint ." + "lint": "prettier --check . && eslint .", + "openapi": "openapi-typescript http://127.0.0.1:8000/openapi/openapi.json -o api/schema.d.ts" }, "devDependencies": { "@eslint/compat": "^1.3.1", @@ -23,6 +24,7 @@ "eslint-config-prettier": "^10.0.1", "eslint-plugin-svelte": "^3.10.1", "globals": "^16.3.0", + "openapi-typescript": "^7.8.0", "prettier": "^3.6.2", "prettier-plugin-svelte": "^3.3.3", "svelte": "^5.35.0", |
