Skip to content

Commit

Permalink
Merge branch 'fix/partial-support-for-union-types' into release/1.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
milosdanilov committed Nov 10, 2021
2 parents 10308e3 + 06f5fb7 commit 7316afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/helpers/TypeResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ export class TypeResolver {
result.isItemOrArray = true;
} else {
result.unionType = type;
console.warn(`TypeResolverWarning: Union types only partially supported. Found type ${JSON.stringify(type)}`);
}

} else {
result.unionType = type;
console.warn(`TypeResolverWarning: Union types only partially supported! Found type ${JSON.stringify(type)}`);
}

return result;
}

if (typeof type[0] === 'string') {
Expand Down

0 comments on commit 7316afb

Please sign in to comment.