Dereference an OpenAPI document's local $ref pointers, with circular references detected, external ones reported as unresolved, and nothing silently replaced.
Waiting for a document
OpenAPI in JSON or YAML. Nothing is fetched, including referenced files.
An unresolved reference is never replaced with an empty object here. Substituting {} turns “this reference is broken” into “this schema permits anything”, and validation then passes for every payload — so the reference is left in place and reported instead.
Paste a document to resolve its references and see what each operation really declares.
Nothing is fetched. A reference naming another file — or a URL — is reported as an external dependency and left unresolved, because following it would send your document’s neighbours, and possibly your network position, somewhere. Bundle the specification first with a tool that runs where those files are, and the bundled output resolves completely here. A recursive schema is reported as recursive rather than broken: it is how a tree is described, and expansion simply stops where the cycle closes.
OpenAPI Reference Resolver runs entirely on your device — your specification is resolved in your browser and no referenced file or URL is ever requested.
You’re on the Free plan. Compare plans
An OpenAPI document of any size is mostly `$ref`. Reading one means holding a dozen pointers in your head at once, which is why a schema that looks simple at the operation turns out to be four levels of indirection away.
This resolves them. Every local pointer is followed to what it names, the result is shown inline, and each resolved value keeps a note of where it came from, so the expanded document is still traceable back to the component it was written in.
Four things it refuses to do, each for a reason. It never fetches: an external reference is reported as an external dependency, not followed, because a tool that reaches out to a URL in your spec is a tool that leaks what your spec names. It never substitutes an empty object for a reference it cannot resolve, because that turns "broken" into "permits anything" — the most dangerous possible reading. It never treats a recursive schema as an error, because a tree or a comment thread is legitimately self-referential. And it unescapes pointer tokens in the order RFC 6901 specifies, because doing it the other way round silently resolves a different pointer.
Circular references are found and reported as cycles, with the path round the loop, rather than expanded until something gives out. A valid recursive schema and a genuine mistake look similar in a document and are told apart here.
Both JSON and YAML are read, and nothing in the document is sent anywhere.
No, deliberately. An external reference is listed as an unresolved external dependency with its target shown. Fetching it would mean sending part of your specification — including whatever internal hostnames it names — to wherever it points.
It is detected and reported as a cycle, with the path round the loop, and expansion stops there rather than running until something breaks. A recursive schema is not treated as invalid: self-reference is how you describe a tree.
It stays in the output as an unresolved reference and appears in the findings. It is never replaced with an empty object, which would turn a broken reference into a schema that accepts anything.
Expanding the definitions as well as the use sites makes the components section unreadable without adding information. The switch is there if you want it — for producing a fully flattened document, for instance.
Yes, and in the order RFC 6901 requires: ~1 becomes a slash before ~0 becomes a tilde. The other order turns ~01 into a slash rather than the literal ~1, which resolves a different pointer than the one written.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab