Generate strongly typed C# and TypeScript client codes from Open API / Swagger definitions supporting jQuery, Angular, AXIOS, Fetch API, Aurelia and Angular Strictly Typed Forms
public class Order
{
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
public string OrderId { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("order_uuid")]
public Guid OrderUuid { get; set; } // the type should be Guid and not string
[System.Text.Json.Serialization.JsonPropertyName("created_date")]
public System.DateTimeOffset? CreatedDate { get; set; }
}
Use
Guid
for theformat:uuid
type instead ofstring
. Example: