Files
windmill/backend/windmill-api/build_openapi.sh
2024-04-08 01:42:43 +02:00

12 lines
310 B
Bash
Executable File

#!/bin/bash
set -e
npx @redocly/openapi-cli@latest bundle openapi.yaml > openapi-bundled.yaml
npx @redocly/openapi-cli@latest bundle openapi-bundled.yaml --ext yaml -d > openapi-deref.yaml
npx @redocly/openapi-cli@latest bundle openapi-bundled.yaml --ext json > openapi-deref.json
rm openapi-bundled.yaml