Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] fix(build): Do not generated OpenAPI for non-shipped apps or apps without OpenAPI support #42928

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added apps/admin_audit/.noopenapi
Empty file.
Empty file.
Empty file added apps/encryption/.noopenapi
Empty file.
Empty file.
49 changes: 49 additions & 0 deletions apps/systemtags/openapi.json
Original file line number Diff line number Diff line change
@@ -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": []
}
Empty file added apps/testing/.noopenapi
Empty file.
Empty file.
Empty file added apps/workflowengine/.noopenapi
Empty file.
6 changes: 4 additions & 2 deletions build/openapi-checker.sh
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down
Loading