Open ChrisMBarr opened 6 months ago
If I extend a type and mark an optional base property as required on the extended type like this:
extend
export interface IBase { foo: string; bar?: string; } export interface IExtended extends IBase { other: string; bar: string; //this causes an error! }
and I run this con the CLI
typeconv --from-type ts --to-type oapi --output-directory swagger-schemas --oapi-format json --oapi-version 3 \"interfaces/**/*.ts\"
It produces this error
Cannot read properties of undefined (reading 'length')
If I
extend
a type and mark an optional base property as required on the extended type like this:and I run this con the CLI
It produces this error