@jsonforms/core
Advanced tools
Comparing version 3.1.0-alpha.3 to 3.1.0-beta.0
{ | ||
"name": "@jsonforms/core", | ||
"version": "3.1.0-alpha.3", | ||
"version": "3.1.0-beta.0", | ||
"description": "Core module of JSON Forms", | ||
@@ -102,3 +102,3 @@ "repository": "https://github.com/eclipsesource/jsonforms", | ||
}, | ||
"gitHead": "f8ea38f9f9dd3d46cbfde269ec43e9eb1632e428" | ||
"gitHead": "a5fdca6fb6afa9820eabe8051401785675f53ad7" | ||
} |
@@ -41,3 +41,3 @@ /* | ||
const discriminatorValue = discriminator(item); | ||
if (known.hasOwnProperty(discriminatorValue)) { | ||
if (Object.prototype.hasOwnProperty.call(known, discriminatorValue)) { | ||
return false; | ||
@@ -159,3 +159,5 @@ } else { | ||
case ADDITIONAL_PROPERTIES: | ||
if (options.hasOwnProperty(ADDITIONAL_PROPERTIES)) { | ||
if ( | ||
Object.prototype.hasOwnProperty.call(options, ADDITIONAL_PROPERTIES) | ||
) { | ||
return options[ADDITIONAL_PROPERTIES]; | ||
@@ -166,3 +168,5 @@ } | ||
case REQUIRED_PROPERTIES: | ||
if (options.hasOwnProperty(REQUIRED_PROPERTIES)) { | ||
if ( | ||
Object.prototype.hasOwnProperty.call(options, REQUIRED_PROPERTIES) | ||
) { | ||
return options[REQUIRED_PROPERTIES](props); | ||
@@ -169,0 +173,0 @@ } |
@@ -93,3 +93,6 @@ /* | ||
const reuseAjvForSchema = (ajv: Ajv, schema: JsonSchema): Ajv => { | ||
if (schema.hasOwnProperty('id') || schema.hasOwnProperty('$id')) { | ||
if ( | ||
Object.prototype.hasOwnProperty.call(schema, 'id') || | ||
Object.prototype.hasOwnProperty.call(schema, '$id') | ||
) { | ||
ajv.removeSchema(schema); | ||
@@ -96,0 +99,0 @@ } |
@@ -328,3 +328,5 @@ /* | ||
uiTypeIs('Control'), | ||
schemaMatches((schema) => schema.hasOwnProperty('allOf')) | ||
schemaMatches((schema) => | ||
Object.prototype.hasOwnProperty.call(schema, 'allOf') | ||
) | ||
); | ||
@@ -334,3 +336,5 @@ | ||
uiTypeIs('Control'), | ||
schemaMatches((schema) => schema.hasOwnProperty('anyOf')) | ||
schemaMatches((schema) => | ||
Object.prototype.hasOwnProperty.call(schema, 'anyOf') | ||
) | ||
); | ||
@@ -340,3 +344,5 @@ | ||
uiTypeIs('Control'), | ||
schemaMatches((schema) => schema.hasOwnProperty('oneOf')) | ||
schemaMatches((schema) => | ||
Object.prototype.hasOwnProperty.call(schema, 'oneOf') | ||
) | ||
); | ||
@@ -352,4 +358,8 @@ | ||
or( | ||
schemaMatches((schema) => schema.hasOwnProperty('enum')), | ||
schemaMatches((schema) => schema.hasOwnProperty('const')) | ||
schemaMatches((schema) => | ||
Object.prototype.hasOwnProperty.call(schema, 'enum') | ||
), | ||
schemaMatches((schema) => | ||
Object.prototype.hasOwnProperty.call(schema, 'const') | ||
) | ||
) | ||
@@ -599,5 +609,5 @@ ); | ||
(schema) => | ||
schema.hasOwnProperty('maximum') && | ||
schema.hasOwnProperty('minimum') && | ||
schema.hasOwnProperty('default') | ||
Object.prototype.hasOwnProperty.call(schema, 'maximum') && | ||
Object.prototype.hasOwnProperty.call(schema, 'minimum') && | ||
Object.prototype.hasOwnProperty.call(schema, 'default') | ||
), | ||
@@ -604,0 +614,0 @@ optionIs('slider', true) |
@@ -52,3 +52,6 @@ /* | ||
return dataPathSegments.reduce((curInstance, decodedSegment) => { | ||
if (!curInstance || !curInstance.hasOwnProperty(decodedSegment)) { | ||
if ( | ||
!curInstance || | ||
!Object.prototype.hasOwnProperty.call(curInstance, decodedSegment) | ||
) { | ||
return undefined; | ||
@@ -55,0 +58,0 @@ } |
@@ -47,4 +47,5 @@ /* | ||
export const isOneOfEnumSchema = (schema: JsonSchema) => | ||
schema?.hasOwnProperty('oneOf') && | ||
schema?.oneOf && | ||
!!schema && | ||
Object.prototype.hasOwnProperty.call(schema, 'oneOf') && | ||
schema.oneOf && | ||
(schema.oneOf as JsonSchema[]).every((s) => s.const !== undefined); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1008169
13174