pub fn resolve_ref(ref_string: &str, openapi_doc: &Value) -> ValueExpand description
Resolve a JSON $ref pointer like #/components/schemas/Foo.
Decodes RFC 6901 escape sequences in path segments (~1 → /, ~0 → ~).
Returns the resolved schema, or an empty object on failure.