chore(ts): add redocly.yaml configuration file

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev
2024-06-24 11:22:20 +02:00
parent 796ebe93e3
commit 8fc003e167
3 changed files with 35 additions and 2 deletions

View File

@ -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

View File

@ -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",

33
redocly.yaml Normal file
View File

@ -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