@@ -4,17 +4,14 @@ import { jsx } from '@emotion/core';
44import { Dictionary , ISchema } from '@stoplight/types' ;
55import { Box , Button , IBox } from '@stoplight/ui-kit' ;
66import dropRight = require( 'lodash/dropRight' ) ;
7- import isEmpty = require( 'lodash/isEmpty' ) ;
87import { FunctionComponent , MouseEventHandler , ReactNodeArray , useCallback , useState } from 'react' ;
98import { MutedText } from './common/MutedText' ;
10- import { dereferenceSchema } from './dereferenceSchema' ;
119import { renderSchema } from './renderers/renderSchema' ;
1210import { useTheme } from './theme' ;
1311import { buildAllOfSchema } from './util/buildAllOfSchema' ;
1412
1513export interface ISchemaViewProps {
1614 name ?: string ;
17- dereferencedSchema ?: ISchema ;
1815 defaultExpandedDepth ?: number ;
1916 schemas : object ;
2017 schema : ISchema ;
@@ -30,7 +27,6 @@ export interface ISchemaView extends ISchemaViewProps, IBox {}
3027export const SchemaView : FunctionComponent < ISchemaView > = props => {
3128 const {
3229 defaultExpandedDepth = 1 ,
33- dereferencedSchema,
3430 emptyText,
3531 expanded = false ,
3632 hideInheritedFrom = false ,
@@ -59,10 +55,7 @@ export const SchemaView: FunctionComponent<ISchemaView> = props => {
5955 [ showExtra ]
6056 ) ;
6157
62- let actualSchema : ISchema =
63- ! dereferencedSchema || isEmpty ( dereferencedSchema )
64- ? dereferenceSchema ( schema , { definitions : schemas } , hideInheritedFrom )
65- : dereferencedSchema ;
58+ let actualSchema = schema ;
6659
6760 if (
6861 ! actualSchema ||
0 commit comments