-
-
Save justinyoo/4adde034b14bb8ef62b0fb22e19a8561 to your computer and use it in GitHub Desktop.
Swashbuckle Pro Tips for ASP.NET Web API #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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