diff options
author | provokateurin <kate@provokateurin.de> | 2024-01-18 11:22:43 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2024-01-18 11:54:49 +0100 |
commit | 3e59696c1a84dcbd6566a2da68f94e0bc7e23947 (patch) | |
tree | 2f06017e8f28f7e3aa103e4a0844971756b1f2aa | |
parent | c16744c70f4acdf20788ecfe0b169500a52eba2e (diff) | |
download | nextcloud-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>
-rw-r--r-- | apps/admin_audit/.noopenapi | 0 | ||||
-rw-r--r-- | apps/contactsinteraction/.noopenapi | 0 | ||||
-rw-r--r-- | apps/encryption/.noopenapi | 0 | ||||
-rw-r--r-- | apps/lookup_server_connector/.noopenapi | 0 | ||||
-rw-r--r-- | apps/systemtags/openapi.json | 49 | ||||
-rw-r--r-- | apps/testing/.noopenapi | 0 | ||||
-rw-r--r-- | apps/twofactor_backupcodes/.noopenapi | 0 | ||||
-rw-r--r-- | apps/workflowengine/.noopenapi | 0 | ||||
-rwxr-xr-x | build/openapi-checker.sh | 6 |
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)" |