Redocly / Redocly/redocly-cli

Add the possibility of using in-built decorators multiple times

Open
#970 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

c1 p2 Type: Idea
Dominant language
TypeScript
Stars
1.5k
Forks
228
Avg merge
1d 14h
Merged PRs (30d)
48

Description

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

Currently, it is impossible to use the same in-built decorator multiple times in the redocly.yaml configuration file.

Describe the solution you'd like.

decorators:
  filter-out:
    - property: x-audience
      value: internal
      matchStrategy: any
    - property: x-test
      value: true
      matchStrategy: any

Additional context.

Front logo Front conversations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by tracing how the redocly.yaml decorators configuration handles the built-in filter-out decorator, then verify the example with two filter-out entries. Done means both entries are accepted and applied independently.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.