@rjsf/utils 5.12.0 → 5.13.0

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/dist/utils.esm.js CHANGED
@@ -460,7 +460,8 @@ function retrieveSchemaInternal(validator, schema, rootSchema, rawFormData, expa
460
460
  }
461
461
  if (ALL_OF_KEY in resolvedSchema) {
462
462
  if (expandAllBranches) {
463
- return [...resolvedSchema.allOf];
463
+ const { allOf, ...restOfSchema } = resolvedSchema;
464
+ return [...allOf, restOfSchema];
464
465
  }
465
466
  try {
466
467
  resolvedSchema = mergeAllOf(resolvedSchema, {