Skip to content

Commit

Permalink
add C# overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Jun 18, 2024
1 parent f98ea11 commit 171277c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions utils/doclint/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`);
Expand Down
2 changes: 1 addition & 1 deletion utils/doclint/generateDotnetApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 171277c

Please sign in to comment.