aboutsummaryrefslogtreecommitdiffstats
path: root/build/openapi-checker.sh
diff options
context:
space:
mode:
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)"