Skip to content

Commit d5f0967

Browse files
author
Oleksandr Dzhychko
committed
ci(model-server-openapi): fix bundling of specs with Redocly
The behavior of the `bundle` command with the `--output` option was deliberately[^1] changed. [^1]: Redocly/redocly-cli#1776 (comment)
1 parent e04b837 commit d5f0967

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

model-server-openapi/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ val bundleSpecs = tasks.register<NpxTask>("bundleSpecs") {
2626
outputs.dir(bundleDir)
2727

2828
command.set("redocly")
29-
args.addAll("bundle", "--output", bundleDir.toString())
29+
args.addAll("bundle")
3030
}
3131

3232
// We combine all specifications into one to deduplicate things like the Problem type

model-server-openapi/redocly.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ plugins:
55
apis:
66
model-server@v2:
77
root: ./specifications/model-server-v2.yaml
8+
output: ./build/bundled/model-server-v2.yaml
89
decorators:
910
plugin/use-server-path: {}
1011
model-server@v1:
1112
root: ./specifications/model-server-v1.yaml
13+
output: ./build/bundled/model-server-v1.yaml
1214
decorators:
1315
plugin/use-server-path: {}
1416
model-server@operative:
1517
root: ./specifications/model-server-operative.yaml
18+
output: ./build/bundled/model-server-operative.yaml
1619
decorators:
1720
plugin/use-server-path: {}

0 commit comments

Comments
 (0)