Skip to content

Commit

Permalink
revert: Unwanted formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
Josmithr authored Sep 20, 2024
1 parent 029c30e commit 74eca54
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ export function toJsonSchema(schema: SimpleTreeSchema): JsonTreeSchema {
}

return allowedTypes.length === 1
? {
...(allowedTypes[0] ?? oob()),
$defs: definitions,
}
: {
$defs: definitions,
anyOf: allowedTypes,
};
? {
...(allowedTypes[0] ?? oob()),
$defs: definitions,
}
: {
$defs: definitions,
anyOf: allowedTypes,
};
}

function convertDefinitions(
Expand Down

0 comments on commit 74eca54

Please sign in to comment.