Skip to content

bundle with --component-renaming-conflicts-severity ignored the reference #2691

@BanglanfengPan

Description

@BanglanfengPan

Describe the bug
--component-renaming-conflicts-severity seems only flag file reference but not pointer reference.

To Reproduce

  1. Set up openapi.yaml like following
openapi: 3.1.0
paths:
  /foo:
    put:
      parameters:
        - $ref: 'A.yaml#/components/parameters/User'
    get:
      parameters:
        - $ref: 'B.yaml#/components/parameters/User'
  1. Set up A.yaml and B.yaml with slightly different specs
  • A.yaml
components:
  parameters:
    User:
      name: test
      in: path
      description: test-A
  • B.yaml
components:
  parameters:
    User:
      name: test
      in: query
      description: test-B

Expected behavior

When run redocly bundle index.yaml --component-renaming-conflicts-severity=error, I would expect it to fail, as both User are conflicts in naming, but it went through without errors.

Logs

bundling index.yaml...
openapi: 3.1.0
paths:
  /foo:
    put:
      parameters:
        - $ref: '#/components/parameters/parameters-User'
    get:
      parameters:
        - $ref: '#/components/parameters/User'
components:
  parameters:
    User:
      name: test
      in: query
      description: test-B
    parameters-User:
      name: test
      in: path
      description: test-A
📦 Created a bundle for index.yaml at stdout 9ms.

Redocly version(s)

2.25.1

Node.js version(s)

Node v24.3.0
NPM 11.4.2

OS, environment

Mac M1

Additional context

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions