Skip to content

Names are Forever

Choose a tag to compare

@mattpolzin mattpolzin released this 21 Aug 04:44
· 696 commits to main since this release
e9c50c9

In this PR, the process of locally dereferencing a document (i.e. document.locallyDereferenced()) will also use a new vendor extension to keep track of the Component Object name where any locally dereferenced objects used to be found.

For example, when resolving a JSONReference<Example>, the resulting Example will have a vendorExtension with key x-component-name and value equal to the name where the newly inlined Example used to be found in the Components.examples.

Note that there are three types for which this does not currently happen:

  1. JSONSchema does not yet support vendorExtensions so this feature does not yet apply there (#292).
  2. Link does not get dereferenced yet so this feature does not yet apply there (#293).
  3. Callback does not get dereferenced yet so this feature does not yet apply there (#294).