mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
only document List schema for now
This commit is contained in:
parent
a914243c39
commit
543ae9bb15
2 changed files with 1 additions and 37 deletions
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue