Skip to content

Bring back parent name prefix for components with same-name conflicts #2795

@Fluf22

Description

@Fluf22

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

Redocly Bundle used to resolve component same-name conflicts by prefixing them with the parent component name.
Since #2706 and v2.27.1, the behavior changed: Redocly Bundle now adds a suffix incremental ID.

Describe the solution you'd like

Add an option to be able to use either parent component prefixing or incremental ID suffixing.

Describe alternatives you've considered

We tried renaming our component to try to match the previous state from which we could enable the lint rule to forbid same-name components, moving forward. Unfortunately, it greatly reduces composability and reusability of our schemas.

Additional context

We use component names in addition to OpenAPI Generator tooling to generate SDKs, and these name changes would introduce breaking changes in our SDKs.
On the other side, we would be very glad to be able to stay up-to-date with Redocly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions