diff --git a/data/schema/TableCsv.json b/data/schema/TableCsv.json deleted file mode 100644 index 3aa18c3e4..000000000 --- a/data/schema/TableCsv.json +++ /dev/null @@ -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" - ] -} \ No newline at end of file diff --git a/src/FilterLists.Data/Schema/JsonSchemaGenerator.cs b/src/FilterLists.Data/Schema/JsonSchemaGenerator.cs index d02f10d18..0bf17c0a6 100644 --- a/src/FilterLists.Data/Schema/JsonSchemaGenerator.cs +++ b/src/FilterLists.Data/Schema/JsonSchemaGenerator.cs @@ -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); } }