Skip to content

Commit 5b8c7d6

Browse files
authored
chore(dotnet): float is non-nullable (#37095)
1 parent c7bf035 commit 5b8c7d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/generate_dotnet_channels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function properties(properties, indent, onlyOptional, parentName, level) {
145145
ts.push('');
146146
ts.push(`${indent}[JsonPropertyName("${name}")]`);
147147
let suffix = ''
148-
if (!['bool', 'int', 'System.Text.Json.JsonElement'].includes(inner.ts))
148+
if (!['bool', 'int', 'float', 'System.Text.Json.JsonElement'].includes(inner.ts))
149149
suffix = ' = null!;'
150150
ts.push(`${indent}public ${inner.ts}${nullableSuffix(inner)} ${toTitleCase(name)} { get; set; }${suffix}`);
151151
const wrapped = inner.optional ? `tOptional(${inner.scheme})` : inner.scheme;

0 commit comments

Comments
 (0)