diff --git a/Makefile b/Makefile index ca88e90de8a..62972721db6 100644 --- a/Makefile +++ b/Makefile @@ -168,7 +168,10 @@ ifndef YARN else cd client && yarn install $(YARN_INSTALL_OPTS) endif - + + +update-client-api-schema: node-deps + $(IN_VENV) cd client && python ../scripts/dump_openapi_schema.py | yarn run openapi-typescript --output src/schema/schema.ts && npx prettier --write src/schema/schema.ts client: node-deps ## Rebuild client-side artifacts for local development. cd client && yarn run build diff --git a/client/package.json b/client/package.json index 2d275fa459c..9f493a09502 100644 --- a/client/package.json +++ b/client/package.json @@ -67,6 +67,8 @@ "markdown-it": "^12.3.2", "markdown-it-regexp": "^0.4.0", "object-hash": "^3.0.0", + "openapi-typescript": "^6.1.0", + "openapi-typescript-fetch": "^1.1.3", "pinia": "^2.0.23", "pinia-plugin-persistedstate": "^2.4.0", "popper.js": "^1.16.1", diff --git a/client/src/components/Dataset/DatasetLink/DatasetLink.vue b/client/src/components/Dataset/DatasetLink/DatasetLink.vue index d4dc2eb37bb..59d04c5bd8f 100644 --- a/client/src/components/Dataset/DatasetLink/DatasetLink.vue +++ b/client/src/components/Dataset/DatasetLink/DatasetLink.vue @@ -5,8 +5,8 @@