mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 11:22:28 -04:00
Merge pull request #42928 from nextcloud/backport/42923/stable28
[stable28] fix(build): Do not generated OpenAPI for non-shipped apps or apps without OpenAPI support
This commit is contained in:
commit
ccd3a99f02
9 changed files with 53 additions and 2 deletions
0
apps/admin_audit/.noopenapi
Normal file
0
apps/admin_audit/.noopenapi
Normal file
0
apps/contactsinteraction/.noopenapi
Normal file
0
apps/contactsinteraction/.noopenapi
Normal file
0
apps/encryption/.noopenapi
Normal file
0
apps/encryption/.noopenapi
Normal file
0
apps/lookup_server_connector/.noopenapi
Normal file
0
apps/lookup_server_connector/.noopenapi
Normal file
49
apps/systemtags/openapi.json
Normal file
49
apps/systemtags/openapi.json
Normal file
|
|
@ -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": []
|
||||
}
|
||||
0
apps/testing/.noopenapi
Normal file
0
apps/testing/.noopenapi
Normal file
0
apps/twofactor_backupcodes/.noopenapi
Normal file
0
apps/twofactor_backupcodes/.noopenapi
Normal file
0
apps/workflowengine/.noopenapi
Normal file
0
apps/workflowengine/.noopenapi
Normal file
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue