cdklabs/json2jsii

Add support for union of interfaces

Opened this issue · 0 comments

moltar commented

Right now only primitive types are supported as unions.

What would support for interfaces look like?

function supportedUnionOptionType(type: any): type is string {
return type && (typeof(type) === 'string' && PRIMITIVE_TYPES.includes(type));
}

if (!supportedUnionOptionType(option.type)) {
return undefined;
}