Create Required attribute and tag properties

This commit is contained in:
Matt Nadareski
2023-08-10 12:09:29 -04:00
parent 1557882fe1
commit fb81fd0243
89 changed files with 316 additions and 155 deletions

View File

@@ -6,8 +6,9 @@ namespace SabreTools.Models.SoftwareList
[XmlRoot("softwarelist")]
public class SoftwareList
{
[Required]
[XmlAttribute("name")]
public string Name { get; set; }
public string? Name { get; set; }
[XmlAttribute("description")]
public string? Description { get; set; }
@@ -16,7 +17,7 @@ namespace SabreTools.Models.SoftwareList
public string? Notes { get; set; }
[XmlElement("software")]
public Software[] Software { get; set; }
public Software[]? Software { get; set; }
#region DO NOT USE IN PRODUCTION