1 write to Required
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\PropertyModel.cs (1)
11
Required
= required;
7 references to Required
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (7)
Languages\angular\Angular.cs (1)
353
return type.Properties.Any(p => p.
Required
);
Languages\csharp\CSharp.cs (1)
251
return classType.Properties.Any(p => p.
Required
&& IsNullable(p.Type));
Modeler\ClassTypeModel.cs (4)
31
Properties.Where(p => p.
Required
&& p.ReadOnly)
32
.Concat(Properties.Where(p => p.
Required
&& !p.ReadOnly))
33
.Concat(Properties.Where(p => !p.
Required
&& p.ReadOnly));
35
public IEnumerable<PropertyModel> RequiredProperties => Properties.Where(p => p.
Required
);
Modeler\PropertyModel.cs (1)
23
return $"{Type} {Name}; Required={
Required
}, ReadOnly={ReadOnly}";