Skip to content

Commit

Permalink
Fix failing cs-check, add to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros committed Nov 23, 2022
1 parent acb12fc commit 552d69e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,11 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
should change the heading of the (upcoming) version to include a major version bump.
-->
# 5.0.0-beta.14

## @rjsf/utils
- Fix improper merging of nested `allOf`s ([#3025](https://github.com/rjsf-team/react-jsonschema-form/pull/3025), [#3227](https://github.com/rjsf-team/react-jsonschema-form/pull/3227))

# 5.0.0-beta.13

## @rjsf/playground
Expand Down
4 changes: 3 additions & 1 deletion packages/utils/src/schema/retrieveSchema.ts
Expand Up @@ -245,7 +245,9 @@ export default function retrieveSchema<

if (ALL_OF_KEY in schema) {
try {
resolvedSchema = mergeAllOf( resolvedSchema, { deep: false } as Options) as S;
resolvedSchema = mergeAllOf(resolvedSchema, {
deep: false,
} as Options) as S;
} catch (e) {
console.warn("could not merge subschemas in allOf:\n" + e);
const { allOf, ...resolvedSchemaWithoutAllOf } = resolvedSchema;
Expand Down

0 comments on commit 552d69e

Please sign in to comment.