chore(dotnet): generate byte[] for binary properties in generator (#11539)

This commit is contained in:
campersau 2022-01-21 15:51:06 +01:00 committed by GitHub
parent 3fb3ba7b96
commit 066b6734d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ function inlineType(type, indent = '', wrapEnums = false) {
if (optional)
type = type.substring(0, type.length - 1);
if (type === 'binary')
return { ts: 'string', scheme: 'tString', optional };
return { ts: 'byte[]', scheme: 'tArray(tByte)', optional };
if (type === 'json')
return { ts: 'any', scheme: 'tAny', optional };
if (['string', 'boolean', 'number', 'undefined'].includes(type)) {