'remove-unused-components' decorator is not working at the per-API level.
Opened this issue · 2 comments
ZyzychO commented
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.yaml
file
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