Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZyzychO opened this issue Aug 29, 2024 · 2 comments
Open
Labels
c0 p2 Type: Bug Something isn't working

Comments

@ZyzychO
Copy link

ZyzychO commented Aug 29, 2024

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

@ZyzychO ZyzychO added Type: Bug Something isn't working c0 p2 labels Aug 29, 2024
@tatomyr
Copy link
Contributor

tatomyr commented Aug 29, 2024

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

@ZyzychO
Copy link
Author

ZyzychO commented Aug 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c0 p2 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants