Redocly/redocly-cli

'remove-unused-components' decorator is not working at the per-API level.

Opened this issue · 2 comments

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:

  1. 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
  1. And this OpenAPI file
    redint.yaml.zip

  2. Run 'redocly bundle' command

  3. Observe that unused component 'StartDate' is not removed from the API definition

Redocly Version(s)

1.21.1

Front logo Front conversations

But the remove-unused-components decorator does work on the root level, right @ZyzychO?

Yes, the decorator works on the root level. @tatomyr