Circular reference in root to root document should be localized
whitlockjc opened this issue · comments
While working on #135 I ran into a situation where circular references in a child document that are represented in the root document are fully-qualified unnecessarily. For example, #/components/schemas/A/properties/children/items/$ref
should be #/components/schemas/B
not openapi.yaml#/components/schemas/B
.
The more I think about this, the more I think that #136 made this unnecessary. Since the uri
and value
values of the reference metdata are there based on the reference definition, the fqURI
now has the sanitized version if need be.