You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The schema iwontbedrop being recursive is not drop even if not used outside of it's scope. So the expectation would be to have both iwontbedrop and iwillbedrop to be dropped
Logs
bundling .../test.json...
openapi: 3.1.0
components:
schemas:
iwontbedrop:
properties:
Myprop:
items:
anyOf:
- $ref: '#/components/schemas/iwontbedrop'
type: array
type: object
📦 Created a bundle for .../test.json at stdout 13ms.
🧹 Removed 1 unused components.
OpenAPI description
Using version 3.1
Redocly Version(s)
1.25.8
Node.js Version(s)
22.4.0
OS, environment
MacOS Sonoma + Ubuntu
The text was updated successfully, but these errors were encountered:
I confirm this is a bug. Thanks for reporting it!
Interesting enough, if you replace the current ref pointer with "#/components/schemas/iwillbedrop", both components will be removed.
Describe the bug
Using remove-unused-components decorator leave some schemas unused by operations but that are recursive.
To Reproduce
Steps to reproduce the behavior:
redocly.yaml
fileredocly bundle
Expected behavior
The schema
iwontbedrop
being recursive is not drop even if not used outside of it's scope. So the expectation would be to have bothiwontbedrop
andiwillbedrop
to be droppedLogs
OpenAPI description
Using version 3.1
Redocly Version(s)
1.25.8
Node.js
Version(s)22.4.0
OS, environment
MacOS Sonoma + Ubuntu
The text was updated successfully, but these errors were encountered: