-
Notifications
You must be signed in to change notification settings - Fork 212
bundle with --component-renaming-conflicts-severity ignored the reference #2691
Copy link
Copy link
Open
Labels
Type: BugSomething isn't workingSomething isn't working
Description
Describe the bug
--component-renaming-conflicts-severity seems only flag file reference but not pointer reference.
To Reproduce
- Set up
openapi.yamllike following
openapi: 3.1.0
paths:
/foo:
put:
parameters:
- $ref: 'A.yaml#/components/parameters/User'
get:
parameters:
- $ref: 'B.yaml#/components/parameters/User'
- Set up
A.yamlandB.yamlwith 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-BExpected 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't workingSomething isn't working