Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Swashbuckle Pro Tips for ASP.NET Web API #3
[XmlRoot("request")]
public class ValueRequestModel
{
[Required]
[XmlElement("id")]
public Guid Id { get; set; }
[Required]
[XmlElement("name")]
public string Name { get; set; }
[Required]
[XmlElement("value")]
public int Value { get; set; }
[Required]
[XmlElement("isValid")]
public bool IsValid { get; set; }
[Required]
[XmlElement("addedOn")]
public DateTimeOffset AddedOn { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment