aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-01-18 11:54:21 +0100
committerGitHub <noreply@github.com>2024-01-18 11:54:21 +0100
commitae48a27786ad57c270219f68c14e9207a7bb5be5 (patch)
tree485effbd6d24a3dde64425c285751a3548764ebe
parentc4f4c5a3fb59ad9d07cbd4248d63add3197fb519 (diff)
parent8c4a52e3ffe161415517ac7a301ff07701387e84 (diff)
downloadnextcloud-server-ae48a27786ad57c270219f68c14e9207a7bb5be5.tar.gz
nextcloud-server-ae48a27786ad57c270219f68c14e9207a7bb5be5.zip
Merge pull request #42923 from nextcloud/fix/build/openapi-non-shipped-no-support
fix(build): Do not generated OpenAPI for non-shipped apps or apps without OpenAPI support
-rw-r--r--apps/admin_audit/.noopenapi0
-rw-r--r--apps/contactsinteraction/.noopenapi0
-rw-r--r--apps/encryption/.noopenapi0
-rw-r--r--apps/lookup_server_connector/.noopenapi0
-rw-r--r--apps/systemtags/openapi.json49
-rw-r--r--apps/testing/.noopenapi0
-rw-r--r--apps/twofactor_backupcodes/.noopenapi0
-rw-r--r--apps/workflowengine/.noopenapi0
-rwxr-xr-xbuild/openapi-checker.sh6
9 files changed, 53 insertions, 2 deletions
diff --git a/apps/admin_audit/.noopenapi b/apps/admin_audit/.noopenapi
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/apps/admin_audit/.noopenapi
diff --git a/apps/contactsinteraction/.noopenapi b/apps/contactsinteraction/.noopenapi
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/apps/contactsinteraction/.noopenapi
diff --git a/apps/encryption/.noopenapi b/apps/encryption/.noopenapi
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/apps/encryption/.noopenapi
diff --git a/apps/lookup_server_connector/.noopenapi b/apps/lookup_server_connector/.noopenapi
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/apps/lookup_server_connector/.noopenapi
diff --git a/apps/systemtags/openapi.json b/apps/systemtags/openapi.json
new file mode 100644
index 00000000000..691717c6484
--- /dev/null
+++ b/apps/systemtags/openapi.json
@@ -0,0 +1,49 @@
+{
+ "openapi": "3.0.3",
+ "info": {
+ "title": "systemtags",
+ "version": "0.0.1",
+ "description": "Collaborative tagging functionality which shares tags among users.",
+ "license": {
+ "name": "agpl"
+ }
+ },
+ "components": {
+ "securitySchemes": {
+ "basic_auth": {
+ "type": "http",
+ "scheme": "basic"
+ },
+ "bearer_auth": {
+ "type": "http",
+ "scheme": "bearer"
+ }
+ },
+ "schemas": {
+ "Capabilities": {
+ "type": "object",
+ "required": [
+ "systemtags"
+ ],
+ "properties": {
+ "systemtags": {
+ "type": "object",
+ "required": [
+ "enabled"
+ ],
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "paths": {},
+ "tags": []
+} \ No newline at end of file
diff --git a/apps/testing/.noopenapi b/apps/testing/.noopenapi
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/apps/testing/.noopenapi
diff --git a/apps/twofactor_backupcodes/.noopenapi b/apps/twofactor_backupcodes/.noopenapi
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/apps/twofactor_backupcodes/.noopenapi
diff --git a/apps/workflowengine/.noopenapi b/apps/workflowengine/.noopenapi
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/apps/workflowengine/.noopenapi
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)"