Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created August 20, 2017 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/4adde034b14bb8ef62b0fb22e19a8561 to your computer and use it in GitHub Desktop.
Save justinyoo/4adde034b14bb8ef62b0fb22e19a8561 to your computer and use it in GitHub Desktop.
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