fix: Callback component $$ref handling (#4454)

This commit is contained in:
kyle
2018-04-18 18:05:15 -07:00
committed by GitHub
parent d3c9ceceef
commit 932cc9838c
3 changed files with 102 additions and 0 deletions

View File

@@ -16,8 +16,14 @@ const Callbacks = (props) => {
return <div key={callbackName}>
<h2>{callbackName}</h2>
{ callback.map((pathItem, pathItemName) => {
if(pathItemName === "$$ref") {
return null
}
return <div key={pathItemName}>
{ pathItem.map((operation, method) => {
if(method === "$$ref") {
return null
}
let op = fromJS({
operation
})