diff --git a/rac_schemas/schemas/base.json b/rac_schemas/schemas/base.json index 28fab59..1db84e3 100644 --- a/rac_schemas/schemas/base.json +++ b/rac_schemas/schemas/base.json @@ -90,7 +90,6 @@ }, "source": { "type": "string", - "minItems": 1, "title": "Date Source", "examples": [ "wikidata", @@ -271,53 +270,50 @@ "$id": "#/definitions/note/properties/type", "type": "string", "minLength": 1, - "items": { - "type": "string", - "enum": [ - "accessrestrict", - "accruals", - "acquinfo", - "altformavail", - "appraisal", - "arrangement", - "bibliography", - "bioghist", - "custodhist", - "fileplan", - "index", - "odd", - "otherfindaid", - "originalsloc", - "phystech", - "prefercite", - "processinfo", - "relatedmaterial", - "scopecontent", - "separatedmaterial", - "userestrict", - "dimensions", - "legalstatus", - "summary", - "edition", - "extent", - "note", - "inscription", - "langmaterial", - "physdesc", - "physloc", - "materialspec", - "physfacet", - "rights_statement", - "rights_statement_act", - "materials", - "type_note", - "additional_information", - "expiration", - "extension", - "permissions", - "restrictions" - ] - }, + "enum": [ + "accessrestrict", + "accruals", + "acquinfo", + "altformavail", + "appraisal", + "arrangement", + "bibliography", + "bioghist", + "custodhist", + "fileplan", + "index", + "odd", + "otherfindaid", + "originalsloc", + "phystech", + "prefercite", + "processinfo", + "relatedmaterial", + "scopecontent", + "separatedmaterial", + "userestrict", + "dimensions", + "legalstatus", + "summary", + "edition", + "extent", + "note", + "inscription", + "langmaterial", + "physdesc", + "physloc", + "materialspec", + "physfacet", + "rights_statement", + "rights_statement_act", + "materials", + "type_note", + "additional_information", + "expiration", + "extension", + "permissions", + "restrictions" + ], "title": "Note Types", "description": "The type of note being used", "examples": [ @@ -339,7 +335,6 @@ "source": { "title": "Notes Source", "type": "string", - "minLength": 1, "examples": [ "wikidata" ], @@ -697,14 +692,11 @@ "type": { "$id": "#/definitions/subnote/properties/type", "type": "string", - "items": { - "type": "string", - "enum": [ - "definedlist", - "orderedlist", - "text" - ] - }, + "enum": [ + "definedlist", + "orderedlist", + "text" + ], "title": "Subnote Type", "minLength": 1, "examples": [ diff --git a/rac_schemas/schemas/note.json b/rac_schemas/schemas/note.json new file mode 100644 index 0000000..f76612c --- /dev/null +++ b/rac_schemas/schemas/note.json @@ -0,0 +1,9 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "note.json", + "type": "object", + "title": "Note schema", + "allOf": [{ + "$ref": "base.json#/definitions/note" + }] +}