diff --git a/src/core/components/object-model.jsx b/src/core/components/object-model.jsx index f13f6ecd..a20ce406 100644 --- a/src/core/components/object-model.jsx +++ b/src/core/components/object-model.jsx @@ -22,6 +22,8 @@ export default class ObjectModel extends Component { let { schema, name, isRef, getComponent, getConfigs, depth, specPath, expandDepth, ...otherProps } = this.props let { specSelectors } = otherProps + const { isOAS3 } = specSelectors + if(!schema) { return null } diff --git a/src/core/components/operation.jsx b/src/core/components/operation.jsx index 507f25eb..1369411a 100644 --- a/src/core/components/operation.jsx +++ b/src/core/components/operation.jsx @@ -59,7 +59,6 @@ export default class Operation extends PureComponent { let { isShown, isAuthorized, - jumpToKey, path, method, op, @@ -114,8 +113,10 @@ export default class Operation extends PureComponent { let onChangeKey = [ path, method ] // Used to add values to _this_ operation ( indexed by path and method ) return ( +
+ {/*TODO: convert this into a component, that can be wrapped + and pulled in with getComponent */}
-
/*TODO: convert this into a component, that can be wrapped and pulled in with getComponent */} {method.toUpperCase()} ", function() { } }, isRef : false, + specPath: [], schema: Immutable.fromJS( { "properties": {