You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a minimal spec to reproduce this behaviour. The spec contains a schema (Test) that is referencing another schema (TestRef). TestRef contains two properties; value which is just a simple type and valueRef which is referencing value.
Based on the order in which I expand the schemas in the UI, the UI produces different results.
When clicking on Test, the value property is rendered correctly as a number. But the valueRef property is not rendered as a number but instead just displays the reference, e.g. https://editor.swagger.io/#/components/schemas/TestRef/properties/value.
When instead clicking on TestRef and then clicking on Test, both properties are correctly rendered as number.
Uh oh!
There was an error while loading. Please reload this page.
Q&A
Content & configuration
I have a minimal spec to reproduce this behaviour. The spec contains a schema (
Test
) that is referencing another schema (TestRef
).TestRef
contains two properties;value
which is just a simple type andvalueRef
which is referencingvalue
.Based on the order in which I expand the schemas in the UI, the UI produces different results.
I noticed this behaviour when using the
swagger-ui-react
library, but it can also be observed on https://editor.swagger.io and https://editor-next.swagger.io/.Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Describe the bug you're encountering
When clicking on
Test
, thevalue
property is rendered correctly as anumber
. But thevalueRef
property is not rendered as anumber
but instead just displays the reference, e.g.https://editor.swagger.io/#/components/schemas/TestRef/properties/value
.When instead clicking on
TestRef
and then clicking onTest
, both properties are correctly rendered asnumber
.To reproduce...
Steps to reproduce the behavior:
Test
valueRef
is not rendered as anumber
TestRef
Test
valueRef
in rendered properlyExpected behavior
The behaviour of how refs are rendered should not depend on the order of clicks in the UI.
Screenshots
Behavior when clicking

Test
:Behavior when clicking

TestRef
and thenTest
:The text was updated successfully, but these errors were encountered: