diff --git a/src/core/components/object-model.jsx b/src/core/components/object-model.jsx
index cfaab2e6..7ba10556 100644
--- a/src/core/components/object-model.jsx
+++ b/src/core/components/object-model.jsx
@@ -18,7 +18,8 @@ export default class ObjectModel extends Component {
render(){
let { schema, name, isRef, getComponent, depth, ...props } = this.props
- let { expandDepth } = this.props
+ let { expandDepth, specSelectors } = this.props
+ let { isOAS3 } = specSelectors
let description = schema.get("description")
let properties = schema.get("properties")
let additionalProperties = schema.get("additionalProperties")
@@ -30,14 +31,16 @@ export default class ObjectModel extends Component {
const Model = getComponent("Model")
const ModelCollapse = getComponent("ModelCollapse")
- const JumpToPathSection = ({ name }) =>
+ const path = isOAS3 && isOAS3() ? `components.schemas.${name}` : `definitions.${name}`
+
+ const JumpToPathSection = ({ name }) =>
const collapsedContent = (
{ braceOpen }...{ braceClose }
{
isRef ? : ""
}
)
-
+
const titleEl = title &&
{ isRef && schema.get("$$ref") && { schema.get("$$ref") } }
{ title }
@@ -102,4 +105,4 @@ export default class ObjectModel extends Component {
}
-}
\ No newline at end of file
+}