Hi!
Input JSON-schema
"MyType" : {
"type": "object",
"properties": {
"someprop":{
"type": "string",
"format": "date-time",
"maxLength": 20,
"minLength": 10
}
}
Generate class
public class MyType
{
[System.ComponentModel.DataAnnotations.StringLength(20, MinimumLength = 10)]
public DateTimeOffset Someprop { get; set; }
}
I think need add condition PropertyType == typeof(string)