diff --git a/example/swagger-files/circular.json b/example/swagger-files/circular.json index 08a272103..f2ae09174 100644 --- a/example/swagger-files/circular.json +++ b/example/swagger-files/circular.json @@ -9,7 +9,7 @@ ], "host": "httpbin.org", "paths": { - "/post": { + "/circular": { "post": { "parameters": [ { @@ -25,6 +25,23 @@ "description": "Circular" } } + }, + "put": { + "description": "This example fails due to a bug in RJSF when attempting to compute defaults for objects with refs.", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "obj": { + "$ref": "#/definitions/user" + } + } + } + } + } + } } } }, @@ -42,6 +59,17 @@ } } } + }, + "user": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "otherUser": { + "$ref": "#/definitions/user" + } + } } } }