From 84db66eb94978ca1dbcabd15f979c90407310464 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Fri, 17 Nov 2017 14:43:14 -0800 Subject: [PATCH] Rewire Callbacks usage of Operation to match new interface --- .../plugins/oas3/components/callbacks.jsx | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/core/plugins/oas3/components/callbacks.jsx b/src/core/plugins/oas3/components/callbacks.jsx index 9290c6fe..39fd7361 100644 --- a/src/core/plugins/oas3/components/callbacks.jsx +++ b/src/core/plugins/oas3/components/callbacks.jsx @@ -1,10 +1,11 @@ import React from "react" import PropTypes from "prop-types" +import { fromJS } from "immutable" const Callbacks = (props) => { - let { callbacks, getComponent } = props + let { callbacks, getComponent, layoutSelectors } = props // const Markdown = getComponent("Markdown") - const Operation = getComponent("operation", true) + const OperationContainer = getComponent("OperationContainer", true) if(!callbacks) { return No callbacks @@ -16,24 +17,21 @@ const Callbacks = (props) => { { callback.map((pathItem, pathItemName) => { return
{ pathItem.map((operation, method) => { - return - // return
{JSON.stringify(operation)}
+ /> }) }
}) } - // return
- //

{name}

- // {callback.description && } - //
{JSON.stringify(callback)}
- //
}) return
{callbackElements}