@jsonforms/core 3.5.0-beta.0 → 3.5.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonforms/core",
3
- "version": "3.5.0-beta.0",
3
+ "version": "3.5.0-beta.2",
4
4
  "description": "Core module of JSON Forms",
5
5
  "repository": "https://github.com/eclipsesource/jsonforms",
6
6
  "bugs": "https://github.com/eclipsesource/jsonforms/issues",
@@ -85,7 +85,7 @@ import {
85
85
  } from '../store';
86
86
  import { isInherentlyEnabled } from './util';
87
87
  import { CombinatorKeyword } from './combinators';
88
- import { isEqual } from 'lodash';
88
+ import isEqual from 'lodash/isEqual';
89
89
 
90
90
  const move = (array: any[], index: number, delta: number) => {
91
91
  const newIndex: number = index + delta;
@@ -44,7 +44,7 @@ import {
44
44
  } from '../actions';
45
45
  import { JsonFormsCore, Reducer, ValidationMode } from '../store';
46
46
  import Ajv, { ErrorObject } from 'ajv';
47
- import { isFunction } from 'lodash';
47
+ import isFunction from 'lodash/isFunction';
48
48
  import { createAjv, validate } from '../util';
49
49
 
50
50
  export const initState: JsonFormsCore = {
@@ -127,7 +127,8 @@ const resolveSchemaWithSegments = (
127
127
  return undefined;
128
128
  }
129
129
 
130
- if (schema.$ref) {
130
+ // use typeof because schema can by of any type - check singleSegmentResolveSchema below
131
+ if (typeof schema.$ref === 'string') {
131
132
  schema = resolveSchema(rootSchema, schema.$ref, rootSchema);
132
133
  }
133
134