only document List schema for now

This commit is contained in:
Collin M. Barrett 2017-10-24 15:54:33 -05:00
parent a914243c39
commit 543ae9bb15
2 changed files with 1 additions and 37 deletions

View file

@ -1,36 +0,0 @@
{
"type": "object",
"properties": {
"Name": {
"type": "string",
"maxLength": 126
},
"Url": {
"type": "string",
"minLength": 6,
"maxLength": 2083
},
"Id": {
"type": "integer"
},
"AddedDateUtc": {
"type": "string",
"default": "CURRENT_TIMESTAMP",
"format": "date-time"
},
"ModifiedDateUtc": {
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"required": [
"Name",
"Url",
"Id",
"AddedDateUtc",
"ModifiedDateUtc"
]
}

View file

@ -15,7 +15,7 @@ public static void WriteSchemaToFiles()
foreach (var type in GetTypesInNamespace(Assembly.GetExecutingAssembly(),
"FilterLists.Data.Models.Implementations"))
{
if (type == typeof(BaseEntity)) continue;
if (type != typeof(List)) continue; //TEMP: only document List schema for now
WriteSchemaToFile(type);
}
}