Pular para o conteúdo principal

pub-gen-schema.json

It's the main schema of a publication created by pub-gen. Describes the data structure of the document being generated, extends the data-package.json, so it has all its properties and adds some specific to pub-gen.

PubGen

type object with properties

Description: Configuration file for pub-gen

NameTypeDescriptionRequired
namestringAn identifier for the publication. It will be automatically generated.Yes
versionstringVersion of the configuration file.Yes
typestringType of the publication.Yes
yearstringPublication year.Yes
publicationsarray<Publication>List of publications.No
drive[Google Drive folder](#google drive folder)Folder where the files will be synced.No
profilestringThe profile of this descriptor.No
idstringA property reserved for globally unique identifiers. Examples of identifiers that are unique include UUIDs and DOIs.No
titlestringA human-readable title.No
descriptionstringA text description. Markdown is encouraged.No
homepagestringThe home on the web that is related to this data package.No
createdstringThe datetime on which this descriptor was created.No
contributorsContributorsThe contributors to this descriptor.No
keywordsarray<string>A list of keywords that describe this package.No
imagestringA image to represent this package.No
licensesarray<License>The license(s) under which this package is published.No
resourcesarray<Data Resource>An array of Data Resource objects, each compliant with the Data Resource specification.No
sourcesarray<Source>The raw sources for this resource.No

Google Drive folder

type object with properties

Description: Folder where the files will be synced.

NameTypeDescriptionRequired
urlstringURL da pastaNo
idstringID da pastaNo

Contributors

type array<Contributor>

Description: The contributors to this descriptor.

Back to top



Contributors

type array<Contributor>

Description: The contributors to this descriptor.

Examples

"{\n  \"contributors\": [\n    {\n      \"title\": \"Joe Bloggs\"\n    }\n  ]\n}\n"
"{\n  \"contributors\": [\n    {\n      \"title\": \"Joe Bloggs\",\n      \"email\": \"joe@example.com\",\n      \"role\": \"author\"\n    }\n  ]\n}\n"