@json-layout/core 1.15.2 → 1.15.3

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": "@json-layout/core",
3
- "version": "1.15.2",
3
+ "version": "1.15.3",
4
4
  "description": "Compilation and state management utilities for JSON Layout.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -199,7 +199,7 @@ export function makeSkeletonNode (
199
199
  }
200
200
 
201
201
  if (schema.oneOf) {
202
- errorMessage.oneOf = options.messages.errorOneOf
202
+ errorMessage.oneOf = errorMessage.oneOf ?? options.messages.errorOneOf
203
203
  }
204
204
 
205
205
  if (type === 'object') {
@@ -480,10 +480,10 @@ export function makeSkeletonNode (
480
480
  for (const propertyKey of node.propertyKeys) {
481
481
  if (schema?.required?.includes(propertyKey)) {
482
482
  errorMessage.required = rawSchema.errorMessage.required ?? {}
483
- errorMessage.required[propertyKey] = options.messages.errorRequired
483
+ errorMessage.required[propertyKey] = errorMessage.required[propertyKey] ?? options.messages.errorRequired
484
484
  }
485
485
  if (schema.dependentRequired && Object.keys(schema.dependentRequired).includes(propertyKey)) {
486
- errorMessage.dependentRequired = options.messages.errorRequired
486
+ errorMessage.dependentRequired = errorMessage.dependentRequired ?? options.messages.errorRequired
487
487
  }
488
488
  }
489
489
  }