add C# overrides
This commit is contained in:
parent
f98ea11654
commit
171277cd74
|
|
@ -866,6 +866,7 @@ function csharpOptionOverloadSuffix(option, type) {
|
|||
case 'Buffer': return 'Byte';
|
||||
case 'Serializable': return 'Object';
|
||||
case 'int': return 'Int';
|
||||
case 'long': return 'Int64';
|
||||
case 'Date': return 'Date';
|
||||
}
|
||||
throw new Error(`CSharp option "${option}" has unsupported type overload "${type}"`);
|
||||
|
|
|
|||
|
|
@ -829,7 +829,7 @@ function translateType(type, parent, generateNameCallback = t => t.name, optiona
|
|||
* @param {Documentation.Type} type
|
||||
*/
|
||||
function registerModelType(typeName, type) {
|
||||
if (['object', 'string', 'int'].includes(typeName))
|
||||
if (['object', 'string', 'int', 'long'].includes(typeName))
|
||||
return;
|
||||
if (typeName.endsWith('Option'))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue