A JSON Schema file encoding the Sciveyor document schema.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
2.4 KiB

{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://data.sciveyor.com/schema",
"$defs": {
"externalIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z]+:.*$"
}
}
},
"type": "object",
"properties": {
"schema": {
"type": "string",
"const": "https://data.sciveyor.com/schema"
},
"version": {
"type": "number",
"const": 5
},
"id": { "type": "string" },
"doi": {
"type": "string",
"pattern": "^10\\.\\d{4,9}\\/[-._;()/:A-Za-z0-9]+$"
},
"externalIds": { "$ref": "#/$defs/externalIds" },
"license": { "type": "string" },
"licenseUrl": {
"type": "string",
"format": "uri"
},
"dataSource": { "type": "string" },
"dataSourceUrl": {
"type": "string",
"format": "uri"
},
"dataSourceVersion": { "type": "number" },
"type": {
"type": "string",
"enum": ["article"]
},
"title": { "type": "string" },
"authors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"first": { "type": "string" },
"middle": { "type": "string" },
"last": { "type": "string" },
"prefix": { "type": "string" },
"suffix": { "type": "string" },
"affiliation": { "type": "string" },
"externalIds": { "$ref": "#/$defs/externalIds" }
},
"required": ["name"],
"additionalProperties": false
}
},
"date": {
"type": "string",
"format": "date-time"
},
"dateElectronic": {
"type": "string",
"format": "date-time"
},
"dateAccepted": {
"type": "string",
"format": "date-time"
},
"dateReceived": {
"type": "string",
"format": "date-time"
},
"journal": { "type": "string" },
"volume": { "type": "string" },
"number": { "type": "string" },
"pages": { "type": "string" },
"keywords": {
"type": "array",
"items": { "type": "string" }
},
"tags": {
"type": "array",
"items": { "type": "string" }
},
"abstract": { "type": "string" },
"fullText": { "type": "string" }
},
"required": [
"schema",
"version",
"id",
"license",
"licenseUrl",
"dataSource",
"dataSourceUrl",
"dataSourceVersion",
"type"
],
"additionalProperties": false
}