diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-01-18 11:54:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 11:54:21 +0100 |
commit | ae48a27786ad57c270219f68c14e9207a7bb5be5 (patch) | |
tree | 485effbd6d24a3dde64425c285751a3548764ebe | |
parent | c4f4c5a3fb59ad9d07cbd4248d63add3197fb519 (diff) | |
parent | 8c4a52e3ffe161415517ac7a301ff07701387e84 (diff) | |
download | nextcloud-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/.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)" |