The ROOT schema NAME a $ref targets, or null if it isn't a components/schemas reference. Parses the
JSON-Pointer by tokens (RFC 6901, matching @suluk/core's resolveRef) so a DEEP ref (.../Order/properties/id)
still resolves to its root "Order", and an escaped name (.../v2~1Order) unescapes to the real key "v2/Order"
— a flat /(.+)/ regex would mis-capture the whole tail and false-flag a legitimate ref as dangling.
The ROOT schema NAME a $ref targets, or null if it isn't a components/schemas reference. Parses the JSON-Pointer by tokens (RFC 6901, matching @suluk/core's resolveRef) so a DEEP ref (.../Order/properties/id) still resolves to its root "Order", and an escaped name (.../v2~1Order) unescapes to the real key "v2/Order" — a flat /(.+)/ regex would mis-capture the whole tail and false-flag a legitimate ref as dangling.