File tree Expand file tree Collapse file tree 2 files changed +30715
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30715
-0
lines changed Original file line number Diff line number Diff line change 33# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
44# SPDX-License-Identifier: AGPL-3.0-or-later
55
6+ specs=()
67for path in core apps/* ; do
78 if [ ! -f " $path /.noopenapi" ] && [[ " $( git check-ignore " $path " ) " != " $path " ]]; then
89 composer exec generate-spec " $path " " $path /openapi.json" || exit 1
10+ if [[ " $( basename " $path " ) " != " core" ]]; then
11+ if [ -f " $path /openapi-full.json" ]; then
12+ specs+=(" $path /openapi-full.json" )
13+ else
14+ specs+=(" $path /openapi.json" )
15+ fi ;
16+ fi ;
917 fi
1018done
1119
20+ composer exec merge-specs -- \
21+ --core core/openapi-full.json \
22+ --merged openapi.json \
23+ " ${specs[@]} "
24+
1225files=" $( git ls-files --exclude-standard --modified --others) "
1326changed=false
1427for file in $files ; do
You can’t perform that action at this time.
0 commit comments