Example Swagger/OpenAPI definition:
openapi: "3.0.0"
info:
title: "Test API For Self Reference"
version: "1.0"
paths:
/greeting:
get:
tags:
- Client
description: 'Get the current client session identifier.'
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Person'
components:
schemas:
Person:
type: object
required:
- name
- age
properties:
name:
type: string
example: 'John Doe'
age:
type: integer
example: 42
parent:
$ref: '#/components/schemas/Person'
brother:
$ref: '#/components/schemas/Person'
Swagger-UI configuration options:
Where do I find it?
When expanding the Person schema, Swagger-UI displays this error on top of the page:
Resolver error at components.schemas.Person.properties.parent.$ref
Could not resolve reference: undefined undefined
Steps to reproduce the behavior:
No error should occur.
Hmm, I kind of fixed it by entering the absolute path (instead of relative one) to the yaml file in the Explore text field. I'm not sure whether this is the way it is meant to be...
Are you sure you're using the latest version? Can't seem to reproduce it on editor.swagger.io.
I have met the same issue for using 3.25.2.
I have a quick check and figure out the issue happened from 3.22.3
Have check on editor.swagger.io
it's empty instead of throwing a warning on the top of the page.

The issue is still there (5 months later).
Any fix foreseen ?
Most helpful comment
I have met the same issue for using 3.25.2.
I have a quick check and figure out the issue happened from 3.22.3
Have check on editor.swagger.io
it's empty instead of throwing a warning on the top of the page.