Skip to content

Commit 0e75e12

Browse files
committedDec 8, 2022
works for if then/if else
1 parent f244e56 commit 0e75e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Convertor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class Convertor {
311311
Object.assign(this.components, {schemas: {[ifSchemaRefName]: schema.if}})
312312
}
313313

314-
if (schema?.then && schema?.else) {
314+
if (schema?.then || schema?.else) {
315315
let oneOf = []
316316
if (schema.then) {
317317
oneOf.push({

0 commit comments

Comments
 (0)