aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-01-18 11:22:43 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2024-01-18 11:54:49 +0100
commit3e59696c1a84dcbd6566a2da68f94e0bc7e23947 (patch)
tree2f06017e8f28f7e3aa103e4a0844971756b1f2aa /build
parentc16744c70f4acdf20788ecfe0b169500a52eba2e (diff)
downloadnextcloud-server-3e59696c1a84dcbd6566a2da68f94e0bc7e23947.tar.gz
nextcloud-server-3e59696c1a84dcbd6566a2da68f94e0bc7e23947.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')
-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)"