-
If I have a DTO that contains other objects, I would like to add validation attributes to the properties on those objects, and have them be validated on BindAndValidate. Example:
```
public class Vi…
-
Bootstrap default templates ignore ScaffoldColumn() annotations. In my project I've corrected this by updating the VisibleProperties() extension methods with an additional where clause:
```
.Where(in…
-
Model pseudo-code:
[Key]
public long AnythingDifferentFromId { get; set; }
Breaks at line 49, ViewHelperExtensions.cs :
return model.GetType().GetProperty(model.IdentifierPropertyName()).GetValue(mod…
srnux updated
9 years ago
-
In the demo project (full source code here: https://github.com/weifenluo/TestCustomTypeDescriptor), there is a `DataClass` that implements `ICustomTypeDescriptor`, with one `Name` property decorated w…
-
Every time when the proxy is generated, the System.Componentmodel.Annotations Package is added automatically, even if System.Componentmodel.DataAnnotations (standard .net ) is part of the project .
…
-
### Is your feature request related to a specific problem? Or an existing feature?
I'm migrating from policies to resilience pipelines and I saw many of my tests failing because of
```
System.Com…
-
Hello, I use NSwag to generate C# Web API controller code from swagger document. and It looks like required field of path/query param is not "translated" into "System.ComponentModel.DataAnnotations.Re…
-
Here is my example (did cost me a few hours pf my life to figure out what's going on):
I did set this line `services.AddLocalization(options => options.ResourcesPath = "Resources");`
And then, t…
-
NSwagStudio v13.16.1.0
Runtime: Net60
Outputs: CSharpClient
Settings:
```
"generateOptionalPropertiesAsNullable": true,
"generateNullableReferenceTypes": true,
```
According to [its docs](…
-
When using a custom JSchemaGenerationProvider DataAnnotations like MinLength/MaxLength are not generated in the schema.
```
public class ExampleSchemaProvider : JSchemaGenerationProvider
{
p…