Skip to content

Commit

Permalink
update note schema
Browse files Browse the repository at this point in the history
  • Loading branch information
helrond committed Oct 1, 2020
1 parent 9cf049a commit 111e216
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 57 deletions.
106 changes: 49 additions & 57 deletions rac_schemas/schemas/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
},
"source": {
"type": "string",
"minItems": 1,
"title": "Date Source",
"examples": [
"wikidata",
Expand Down Expand Up @@ -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": [
Expand All @@ -339,7 +335,6 @@
"source": {
"title": "Notes Source",
"type": "string",
"minLength": 1,
"examples": [
"wikidata"
],
Expand Down Expand Up @@ -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": [
Expand Down
9 changes: 9 additions & 0 deletions rac_schemas/schemas/note.json
Original file line number Diff line number Diff line change
@@ -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"
}]
}

0 comments on commit 111e216

Please sign in to comment.