Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Adding a circular example that'll fail due to a bug in RJSF.
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Aug 26, 2019
1 parent 8d9cdac commit f7812f7
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion example/swagger-files/circular.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"host": "httpbin.org",
"paths": {
"/post": {
"/circular": {
"post": {
"parameters": [
{
Expand All @@ -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"
}
}
}
}
}
}
}
}
},
Expand All @@ -42,6 +59,17 @@
}
}
}
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"otherUser": {
"$ref": "#/definitions/user"
}
}
}
}
}

0 comments on commit f7812f7

Please sign in to comment.