@json-layout/core
Advanced tools
Comparing version 0.21.0 to 0.21.1
{ | ||
"name": "@json-layout/core", | ||
"version": "0.21.0", | ||
"version": "0.21.1", | ||
"description": "Compilation and state management utilities for JSON Layout.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -153,9 +153,2 @@ // import Debug from 'debug' | ||
)) | ||
if (schema?.required?.includes(propertyKey)) { | ||
schema.errorMessage.required = schema.errorMessage.required ?? {} | ||
schema.errorMessage.required[propertyKey] = options.messages.errorRequired | ||
} | ||
if (schema.dependentRequired && Object.keys(schema.dependentRequired).includes(propertyKey)) { | ||
schema.errorMessage.dependentRequired = options.messages.errorRequired | ||
} | ||
@@ -294,2 +287,12 @@ if (schema.dependentSchemas?.[propertyKey] || (schema.dependencies?.[propertyKey] && !Array.isArray(schema.dependencies[propertyKey]))) { | ||
} | ||
for (const propertyKey of node.propertyKeys) { | ||
if (schema?.required?.includes(propertyKey)) { | ||
schema.errorMessage.required = schema.errorMessage.required ?? {} | ||
schema.errorMessage.required[propertyKey] = options.messages.errorRequired | ||
} | ||
if (schema.dependentRequired && Object.keys(schema.dependentRequired).includes(propertyKey)) { | ||
schema.errorMessage.dependentRequired = options.messages.errorRequired | ||
} | ||
} | ||
} | ||
@@ -296,0 +299,0 @@ |
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
144408
3274