1 write to IsOptional
Aspire.Hosting (1)
Ats\AtsCapabilityScanner.cs (1)
882
IsOptional
= !prop.CanWrite // If no setter, it's likely init-only and required
9 references to IsOptional
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
176
var propertyType = MapTypeRefToGo(property.Type, property.
IsOptional
);
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (2)
190
var fieldType = MapTypeRefToJava(property.Type, property.
IsOptional
);
200
var fieldType = MapTypeRefToJava(property.Type, property.
IsOptional
);
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
171
var optionalSuffix = property.
IsOptional
? " | None" : string.Empty;
172
var defaultValue = property.
IsOptional
? " = None" : string.Empty;
Aspire.Hosting.CodeGeneration.Rust (3)
AtsRustCodeGenerator.cs (3)
209
var propertyType = MapTypeRefToRustForDto(property.Type, property.
IsOptional
);
210
if (property.
IsOptional
)
230
if (property.
IsOptional
)
aspire-server (1)
CodeGeneration\CodeGenerationService.cs (1)
125
IsOptional = p.
IsOptional