question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

enable-rule, enable-decorator args

See original GitHub issue

Is your feature request related to a problem? Please describe.

There is a way to skip rules and decorators but no way to enable them by args.

I think this causes a user experience problem. This means to enable any decorator or rule requires adding it explicitly to the .redocly.yaml file. This is problematic when someone doesn’t even have a .redocly.yaml file – they need to:

  1. Create a .redocly.yaml file (which has its own challenges because commonly used operating systems hide dot files by default)
  2. Learn the structure of the file and fill it out to enable a rule or decorator. Save the file.
  3. Commit to source control, upload, or CLI push again.

Describe the solution you’d like

I would like to be able to specify enabling some rule or decorator at runtime. For example, removing internal APIs…

--enable-decorator=remove-x-internal,remove-unused-components

Describe alternatives you’ve considered

Auto-generating .redocly.yaml file on the fly from a wizard.

Additional context

I am envisioning what the usage may be like from within the API registry in workflows, where someone may be able to select from specific rules and decorators.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
adamaltmancommented, Jan 5, 2022

Thank you @andriyl – I like the {key:value,key2:value2}. But, don’t proceed yet – let’s get more feedback. As it turns out this issue exists for decorators and rules.

1reaction
andriylcommented, Jan 5, 2022

Suggestions about parameters: --enable-decorator=remove-x-internal{key:value,key2:value2},remove-unused-components --enable-decorator=remove-x-internal@key:value,key2:value2,remove-unused-components

Read more comments on GitHub >

github_iconTop Results From Across the Web

enable-rule, enable-decorator args #495 - Redocly/redocly-cli
There is a way to skip rules and decorators but no way to enable them by args. I think this causes a user...
Read more >
Define ribbon enable rules (model-driven apps) - Power Apps
In this article · Use the /RuleDefinitions/EnableRules/EnableRule element to define rules controlling when the ribbon element should be enabled.
Read more >
ribbon workbench question (enable rule) - Microsoft Dynamics ...
I want to use 1 js custom rule to set enable rule ... Have you reviewed the following when working with the CRM...
Read more >
openapi-cli - bytemeta
enable-rule, enable-decorator args. adamaltman. adamaltman OPEN · Updated 9 months ago · Environment variable support. adamaltman. adamaltman OPEN.
Read more >
how to check if an element is onEnter or onLeave - Thebuilder/React ...
enable-rule, enable-decorator args, 9, 2022-01-01, 2022-10-26 ... Command-line argument --timing ignored, 2, 2022-11-21, 2022-11-29.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found