Skip to content

Commit

Permalink
Merge pull request #38 from kaplun/pr/16
Browse files Browse the repository at this point in the history
schemas: add missing types
  • Loading branch information
kaplun committed Nov 30, 2016
2 parents 8d840a6 + a5b26d9 commit 5ae232a
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 18 deletions.
3 changes: 3 additions & 0 deletions inspire_schemas/records/authors.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
},
"native_name": {
"description": "Stores name in native form.",
"items": {
"type": "string"
},
"type": "array"
},
"new_record": {
Expand Down
21 changes: 15 additions & 6 deletions inspire_schemas/records/conferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"$schema": "http://json-schema.org/schema#",
"properties": {
"acronym": {
"items": {
"type": "string"
},
"title": "Conference acronym",
"type": "array"
},
Expand Down Expand Up @@ -72,6 +75,9 @@
"type": "string"
},
"note": {
"items": {
"type": "string"
},
"title": "Note",
"type": "array"
},
Expand Down Expand Up @@ -110,13 +116,16 @@
"uniqueItems": true
},
"short_description": {
"properties": {
"source": {
"type": "string"
"items": {
"properties": {
"source": {
"type": "string"
},
"value": {
"type": "string"
}
},
"value": {
"type": "string"
}
"type": "object"
},
"title": "Short description",
"type": "array"
Expand Down
36 changes: 24 additions & 12 deletions inspire_schemas/records/elements/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
"pattern": "CERN-\\d+",
"type": "string"
}
}
},
"type": "object"
},
{
"properties": {
Expand All @@ -117,59 +118,68 @@
"pattern": "DESY-\\d+",
"type": "string"
}
}
},
"type": "object"
},
{
"properties": {
"type": {
"enum": [
"GOOGLESCHOLAR"
]
],
"type": "string"
},
"value": {
"pattern": "(\\w|-){12}",
"type": "string"
}
}
},
"type": "object"
},
{
"properties": {
"type": {
"enum": [
"VIAF"
]
],
"type": "string"
},
"value": {
"pattern": "\\d{7,9}",
"type": "string"
}
}
},
"type": "object"
},
{
"properties": {
"type": {
"enum": [
"RESEARCHERID"
]
],
"type": "string"
},
"value": {
"pattern": "[A-z]-\\d{4}-\\d{4}",
"type": "string"
}
}
},
"type": "object"
},
{
"properties": {
"type": {
"enum": [
"SCOPUS"
]
],
"type": "string"
},
"value": {
"pattern": "\\d{10,11}",
"type": "string"
}
}
},
"type": "object"
},
{
"properties": {
Expand All @@ -183,7 +193,8 @@
"pattern": "\\w+",
"type": "string"
}
}
},
"type": "object"
},
{
"properties": {
Expand All @@ -197,7 +208,8 @@
"pattern": "SLAC-\\d+",
"type": "string"
}
}
},
"type": "object"
}
],
"required": [
Expand Down
3 changes: 3 additions & 0 deletions inspire_schemas/records/experiments.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
"type": "boolean"
},
"description": {
"items": {
"type": "string"
},
"title": "Description",
"type": "array"
},
Expand Down
9 changes: 9 additions & 0 deletions inspire_schemas/records/institutions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"properties": {
"ICN": {
"description": "HEP affiliation following new standards",
"items": {
"type": "string"
},
"title": "New INSPIRE control number",
"type": "array"
},
Expand All @@ -23,6 +26,9 @@
},
"department": {
"description": "Subordinate unit in native language",
"items": {
"type": "string"
},
"title": "Department",
"type": "array"
},
Expand Down Expand Up @@ -76,6 +82,9 @@
},
"institution": {
"description": "Corporate name in native language",
"items": {
"type": "string"
},
"title": "Institution name",
"type": "array"
},
Expand Down
3 changes: 3 additions & 0 deletions inspire_schemas/records/journals.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
"type": "string"
},
"publisher": {
"items": {
"type": "string"
},
"title": "Publisher",
"type": "array"
},
Expand Down

0 comments on commit 5ae232a

Please sign in to comment.