aboutsummaryrefslogtreecommitdiffstats
path: root/build/openapi-checker.sh
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-01-18 11:22:43 +0100
committerprovokateurin <kate@provokateurin.de>2024-01-18 11:22:43 +0100
commit8c4a52e3ffe161415517ac7a301ff07701387e84 (patch)
tree56d81f5769ef6a6d5b43fe00a67b293a5202243f /build/openapi-checker.sh
parentd9d222d18a7309ad1c8ce5311b3b4819fe365cb4 (diff)
downloadnextcloud-server-8c4a52e3ffe161415517ac7a301ff07701387e84.tar.gz
nextcloud-server-8c4a52e3ffe161415517ac7a301ff07701387e84.zip
fix(build): Do not generated OpenAPI for non-shipped apps or apps without OpenAPI support
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'build/openapi-checker.sh')
-rwxr-xr-xbuild/openapi-checker.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/openapi-checker.sh b/build/openapi-checker.sh
index ca9d382a1cf..ffcd12aea73 100755
--- a/build/openapi-checker.sh
+++ b/build/openapi-checker.sh
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
-for path in core/openapi.json apps/*/openapi.json; do
- composer exec generate-spec "$(dirname "$path")" "$path" || exit 1
+for path in core apps/*; do
+ if [ ! -f "$path/.noopenapi" ] && [[ "$(git check-ignore "$path")" != "$path" ]]; then
+ composer exec generate-spec "$path" "$path/openapi.json" || exit 1
+ fi
done
files="$(git diff --name-only)"