-
-
Save PhDP/7185544 to your computer and use it in GitHub Desktop.
First draft of Scriptoria's JSON schema (has bugs I think).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title": "Scriptoria object", | |
"description": "Meta-data about a publication registered in scriptoria", | |
"type": "object", | |
"properties": { | |
"source": { | |
"description": "URL of the original repository", | |
"type": "string" | |
}, | |
"type": { | |
"description": "Type of document", | |
"type": "string", | |
"enum": ["article", "thesis", "conference", "chapter", "book", "thesis", "presentation", "other"] | |
}, | |
"status": { | |
"description": "Current status of the document", | |
"type": "string", | |
"enum": ["published", "under review", "in prep"] | |
}, | |
"title": { | |
"description": "Title of the contribution", | |
"type": "string" | |
}, | |
"abstract": { | |
"description": "Abstract", | |
"type": "string" | |
}, | |
"fork-policy": { | |
"description": "Whether the authors seek forks and collaborations", | |
"type": "string", | |
"enum": ["open", "contact", "no-forks"] | |
}, | |
"authors": { | |
"description": "list of authors", | |
"type": "object", | |
[{ | |
"first-name": { | |
"description": "Author first name", | |
"type": "string" | |
}, | |
"initials": { | |
"description": "Author initials", | |
"type": "string" | |
}, | |
"last-name": { | |
"description": "Author last name", | |
"type": "string" | |
}, | |
"email": { | |
"description": "Author email", | |
"type": "string" | |
}, | |
"orcid": { | |
"description": "ORCID identifier", | |
"type": "string" | |
}, | |
"corresponding": { | |
"description": "Is this author responsible for correspondance?", | |
"type": "boolean", | |
}, | |
"first_author": { | |
"description": "Is this author (one of the) first author(s)?", | |
"type": "boolean" | |
} | |
}] | |
}, | |
"doi": { | |
"description": "DOI of the contribution", | |
"type": "string" | |
}, | |
"dataset": { | |
"description": "DOI of the associated dataset", | |
"type": "string" | |
}, | |
"required": ["source", "type", "title", "abstract", "status", "authors"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment