diff --git a/inspire_schemas/records/authors.json b/inspire_schemas/records/authors.json index 40138c6d..64b8345b 100644 --- a/inspire_schemas/records/authors.json +++ b/inspire_schemas/records/authors.json @@ -103,11 +103,7 @@ }, "inspire_categories": { "items": { - "oneOf": [ - { - "$ref": "elements/inspire_field.json" - } - ] + "$ref": "elements/inspire_field.json" }, "type": "array", "uniqueItems": true diff --git a/inspire_schemas/records/conferences.json b/inspire_schemas/records/conferences.json index 96884fc1..9b56c591 100644 --- a/inspire_schemas/records/conferences.json +++ b/inspire_schemas/records/conferences.json @@ -44,11 +44,7 @@ }, "inspire_categories": { "items": { - "oneOf": [ - { - "$ref": "elements/inspire_field.json" - } - ] + "$ref": "elements/inspire_field.json" }, "type": "array", "uniqueItems": true diff --git a/inspire_schemas/records/elements/inspire_field.json b/inspire_schemas/records/elements/inspire_field.json index eebfefd3..3d1ed49f 100644 --- a/inspire_schemas/records/elements/inspire_field.json +++ b/inspire_schemas/records/elements/inspire_field.json @@ -1,33 +1,36 @@ { "$schema": "http://json-schema.org/schema#", - "source": { - "enum": [ - "curator", - "magpie", - "arxiv", - "user", - "undefined" - ], - "type": "string" + "properties": { + "source": { + "enum": [ + "curator", + "magpie", + "arxiv", + "user", + "undefined" + ], + "type": "string" + }, + "term": { + "enum": [ + "Accelerators", + "Astrophysics", + "Computing", + "Data Analysis and Statistics", + "Experiment-HEP", + "Experiment-Nucl", + "General Physics", + "Gravitation and Cosmology", + "Instrumentation", + "Lattice", + "Math and Math Physics", + "Other", + "Phenomenology-HEP", + "Theory-HEP", + "Theory-Nucl" + ], + "type": "string" + } }, - "term": { - "enum": [ - "Accelerators", - "Astrophysics", - "Computing", - "Data Analysis and Statistics", - "Experiment-HEP", - "Experiment-Nucl", - "General Physics", - "Gravitation and Cosmology", - "Instrumentation", - "Lattice", - "Math and Math Physics", - "Other", - "Phenomenology-HEP", - "Theory-HEP", - "Theory-Nucl" - ], - "type": "string" - } + "type": "object" } diff --git a/inspire_schemas/records/experiments.json b/inspire_schemas/records/experiments.json index c92890b4..52600b6c 100644 --- a/inspire_schemas/records/experiments.json +++ b/inspire_schemas/records/experiments.json @@ -107,11 +107,7 @@ }, "inspire_categories": { "items": { - "oneOf": [ - { - "$ref": "elements/inspire_field.json" - } - ] + "$ref": "elements/inspire_field.json" }, "type": "array", "uniqueItems": true diff --git a/inspire_schemas/records/hep.json b/inspire_schemas/records/hep.json index 1db6d135..e512fbc3 100644 --- a/inspire_schemas/records/hep.json +++ b/inspire_schemas/records/hep.json @@ -458,11 +458,7 @@ }, "inspire_categories": { "items": { - "oneOf": [ - { - "$ref": "elements/inspire_field.json" - } - ] + "$ref": "elements/inspire_field.json" }, "type": "array", "uniqueItems": true diff --git a/inspire_schemas/records/institutions.json b/inspire_schemas/records/institutions.json index ed371f59..d688ddbd 100644 --- a/inspire_schemas/records/institutions.json +++ b/inspire_schemas/records/institutions.json @@ -102,11 +102,7 @@ }, "inspire_categories": { "items": { - "oneOf": [ - { - "$ref": "elements/inspire_field.json" - } - ] + "$ref": "elements/inspire_field.json" }, "type": "array", "uniqueItems": true diff --git a/inspire_schemas/records/jobs.json b/inspire_schemas/records/jobs.json index 7d270cb2..9c7c7359 100644 --- a/inspire_schemas/records/jobs.json +++ b/inspire_schemas/records/jobs.json @@ -55,11 +55,7 @@ }, "inspire_categories": { "items": { - "oneOf": [ - { - "$ref": "elements/inspire_field.json" - } - ] + "$ref": "elements/inspire_field.json" }, "type": "array", "uniqueItems": true