Skip to content

Commit

Permalink
chore: update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
sagold committed Jun 4, 2024
1 parent e282d8b commit 2986ac8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/jsonSchemaLibrary.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion dist/module/lib/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ const stepType = {
if (nextPropertyNode && Array.isArray(nextPropertyNode.schema.oneOf)) {
// @special case: this is a mix of a schema and optional definitions
// we resolve the schema here and add the original schema to `oneOfSchema`
return draft.resolveOneOf(node.next(nextPropertyNode.schema, key), data[key]);
const nextNode = node.next(nextPropertyNode.schema, key);
const result = draft.resolveOneOf(nextNode, data[key]);
if (isJsonError(result)) {
return result;
}
return nextNode.merge(result.schema, "oneOf");
}
if (nextPropertyNode) {
return nextPropertyNode;
Expand Down

0 comments on commit 2986ac8

Please sign in to comment.