File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Note that you need to have Dart installed and [`~/.pub-cache/bin/` needs to be i
13
13
14
14
You will need to have the following packages installed:
15
15
- [ yq] ( https://github.com/kislyuk/yq )
16
+ - [ jsonpatch] ( https://pypi.org/project/jsonpatch )
16
17
- [ sqlite3] ( https://pub.dev/packages/sqflite_common_ffi#getting-started )
17
18
- [ appindicator3] ( https://pub.dev/packages/tray_manager#quick-start )
18
19
Original file line number Diff line number Diff line change 50
50
generate_spec " ." " notifications"
51
51
)
52
52
53
+ for spec in packages/nextcloud/lib/src/api/* .openapi.json; do
54
+ name=" $( basename " $spec " | cut -d " ." -f 1) "
55
+ if [ -f " tool/patches/$name .json" ]; then
56
+ cp " $spec " " /tmp/nextcloud-neon/$name .json"
57
+ jsonpatch --indent 4 " /tmp/nextcloud-neon/$name .json" " tool/patches/$name .json" > " $spec "
58
+ fi
59
+ done
60
+
53
61
(
54
62
cd external/nextcloud-server
55
63
composer exec merge-specs -- --core ../../packages/nextcloud/lib/src/api/core.openapi.json --merged /tmp/nextcloud-neon/merged.json ../../packages/nextcloud/lib/src/api/* .openapi.json --openapi-version 3.1.0
You can’t perform that action at this time.
0 commit comments