From 8fc003e167f7c03e72bd9ecbe49979788813498f Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Mon, 24 Jun 2024 11:22:20 +0200 Subject: [PATCH] chore(ts): add redocly.yaml configuration file Signed-off-by: Maksim Sukharev --- .reuse/dep5 | 2 +- package.json | 2 +- redocly.yaml | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 redocly.yaml diff --git a/.reuse/dep5 b/.reuse/dep5 index b6d0a420c1..84e7d6f491 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -28,7 +28,7 @@ Files: tests/integration/features/*/*.feature Copyright: 2016 Nextcloud GmbH and Nextcloud contributors License: CC0-1.0 -Files: package.json package-lock.json */package.json */package-lock.json composer.json composer.lock */composer.json */composer.lock .gitignore .l10nignore psalm.xml tests/psalm-baseline.xml vendor-bin/*/composer.json vendor-bin/*/composer.lock .tx/config */phpunit.xml tsconfig.json +Files: package.json package-lock.json */package.json */package-lock.json composer.json composer.lock */composer.json */composer.lock .gitignore .l10nignore psalm.xml tests/psalm-baseline.xml vendor-bin/*/composer.json vendor-bin/*/composer.lock .tx/config */phpunit.xml tsconfig.json redocly.yaml Copyright: none License: CC0-1.0 diff --git a/package.json b/package.json index 71f4a7869f..845fbad581 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "watch": "webpack --node-env development --progress --watch", "serve": "webpack serve --node-env development --progress --allowed-hosts all", "typescript:check": "tsc --noEmit", - "typescript:generate": "npx openapi-typescript \"./openapi*.json\" --immutable -t -o src/types/openapi/", + "typescript:generate": "npx openapi-typescript -t", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", diff --git a/redocly.yaml b/redocly.yaml new file mode 100644 index 0000000000..91a23b690a --- /dev/null +++ b/redocly.yaml @@ -0,0 +1,33 @@ +apis: + openapi@v1: + root: ./openapi.json + x-openapi-ts: + output: ./src/types/openapi/openapi.ts + openapi-administration@v1: + root: ./openapi-administration.json + x-openapi-ts: + output: ./src/types/openapi/openapi-administration.ts + openapi-backend-recording@v1: + root: ./openapi-backend-recording.json + x-openapi-ts: + output: ./src/types/openapi/openapi-backend-recording.ts + openapi-backend-signaling@v1: + root: ./openapi-backend-signaling.json + x-openapi-ts: + output: ./src/types/openapi/openapi-backend-signaling.ts + openapi-backend-sipbridge@v1: + root: ./openapi-backend-sipbridge.json + x-openapi-ts: + output: ./src/types/openapi/openapi-backend-sipbridge.ts + openapi-bots@v1: + root: ./openapi-bots.json + x-openapi-ts: + output: ./src/types/openapi/openapi-bots.ts + openapi-federation@v1: + root: ./openapi-federation.json + x-openapi-ts: + output: ./src/types/openapi/openapi-federation.ts + openapi-full@v1: + root: ./openapi-full.json + x-openapi-ts: + output: ./src/types/openapi/openapi-full.ts