Open aneeshnazar opened 3 days ago
hi @aneeshnazar
I recreated your example in the playground
If I understand correctly, you also want to remove schema that are only referencing themselves? If they would be used somewhere else they would have to remain?
I'm bit surprised how a schema would reference itself, can you share that case so we can look into building the logic to filter out this case.
We're trying to use this filterFile:
to filter our OpenAPI specs. It works for most use-cases, but schemas like this, that are not being referenced elsewhere in the filtered spec:
are also being captured