public class PagingDto
{
public int Skip { get; set; }
public int Take { get; set; }
List<SortDescriptorDto> Sorts { get; set; } = new();
}
public class SortDescriptorDto
{
public string Property { get; set; }
public SortOrderDto? SortOrder { get; set; }
}
public enum SortOrderDto
{
Ascending,
Descending
}
In the générated code there are only the properties Skipand Takefrom PagingDto I get only this :
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class PagingDto
{
[Newtonsoft.Json.JsonProperty("skip", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int Skip { get; set; } = default!;
[Newtonsoft.Json.JsonProperty("take", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int Take { get; set; } = default!;
}
Hello,
I have these classes :
In the générated code there are only the properties
Skip
andTake
fromPagingDto
I get only this :SortOrder
andSortDescriptorDto
are not generated.Thanks,