Skip to content

Commit

Permalink
ci(model-server-openapi): fix bundling of specs with Redocly
Browse files Browse the repository at this point in the history
The behavior of the `bundle` command with the `--output` option was deliberately[^1] changed.

[^1]: Redocly/redocly-cli#1776 (comment)
  • Loading branch information
Oleksandr Dzhychko committed Jan 3, 2025
1 parent e04b837 commit d5f0967
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion model-server-openapi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ val bundleSpecs = tasks.register<NpxTask>("bundleSpecs") {
outputs.dir(bundleDir)

command.set("redocly")
args.addAll("bundle", "--output", bundleDir.toString())
args.addAll("bundle")
}

// We combine all specifications into one to deduplicate things like the Problem type
Expand Down
3 changes: 3 additions & 0 deletions model-server-openapi/redocly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ plugins:
apis:
model-server@v2:
root: ./specifications/model-server-v2.yaml
output: ./build/bundled/model-server-v2.yaml
decorators:
plugin/use-server-path: {}
model-server@v1:
root: ./specifications/model-server-v1.yaml
output: ./build/bundled/model-server-v1.yaml
decorators:
plugin/use-server-path: {}
model-server@operative:
root: ./specifications/model-server-operative.yaml
output: ./build/bundled/model-server-operative.yaml
decorators:
plugin/use-server-path: {}

0 comments on commit d5f0967

Please sign in to comment.