Skip to content

Commit

Permalink
bundle openapi.yaml on save
Browse files Browse the repository at this point in the history
  • Loading branch information
caindy committed Jan 1, 2024
1 parent 5904adc commit 53b48ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"Redocly.openapi-vs-code"
"Redocly.openapi-vs-code",
"emeraldwalk.RunOnSave"
]
}
},
Expand Down
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"yaml.maxItemsComputed": 50000
"yaml.maxItemsComputed": 50000,
"emeraldwalk.runonsave": {
"commands": [
{
"match": "docs/_data/*",
"isAsync": true,
"cmd": "npx --yes @redocly/cli bundle /spec/docs/_data/openapi-split.yaml -o /spec/docs/openapi.yaml"
}
]
}
}

0 comments on commit 53b48ae

Please sign in to comment.