redocly-cli
redocly-cli copied to clipboard
'remove-unused-components' decorator is not working at the per-API level.
Describe the bug
When you configure decorator: 'remove-unused-components' per API level it will not remove the unused To Reproduce
Steps to reproduce the behavior:
- Given this
redocly.yamlfile
apis:
testclipush@v1:
root: redint.yaml
decorators:
remove-x-internal: on
remove-unused-components: on
extends:
- minimal
# decorators:
# remove-unused-components: on
-
And this OpenAPI file redint.yaml.zip
-
Run 'redocly bundle' command
-
Observe that unused component 'StartDate' is not removed from the API definition
Redocly Version(s)
1.21.1
But the remove-unused-components decorator does work on the root level, right @ZyzychO?
Yes, the decorator works on the root level. @tatomyr
Related: https://github.com/Redocly/redocly-cli/issues/1323