You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 Skip and Take from 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!;
}
SortOrder and SortDescriptorDto are not generated.
Thanks,
The text was updated successfully, but these errors were encountered:
Kris-I
changed the title
Code not generated when SuvProperty and/or Enum
Code not generated when SubProperty and/or Enum
Apr 15, 2024
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,
The text was updated successfully, but these errors were encountered: