Skip to content

Commit

Permalink
records schemas: split definitions from base.json
Browse files Browse the repository at this point in the history
* Creates a new definitions.json file where we can store all the
  definitions to be included later by other schemas.

* base.json contains now only the properties that we want to include in
  both the project and the video schemas.
  • Loading branch information
switowski authored and egabancho committed May 8, 2017
1 parent 44d623a commit 23a04f4
Show file tree
Hide file tree
Showing 8 changed files with 309 additions and 1,394 deletions.
235 changes: 0 additions & 235 deletions cds_dojson/schemas/deposits/records/videos/project/project-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,241 +3,6 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"definitions": {
"title": {
"description": "A name given to the resource. Typically, a Title will be a name by which the resource is formally known.",
"additionalProperties": false,
"required": [
"title"
],
"properties": {
"title": {
"type": "string"
},
"source": {
"type": "string"
},
"subtitle": {
"type": "string"
}
},
"type": "object"
},
"creator": {
"description": "An entity primarily responsible for making the resource. Examples of a Creator include a person, an organization, or a service. Typically, the name of a Creator should be used to indicate the entity.",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"email": {
"format": "email",
"description": "Contact email for the purpose of this specific record.",
"type": "string"
},
"contribution": {
"description": "Specific contribution of the person to this specific record.",
"type": "string"
},
"affiliations": {
"items": {
"type": "string"
},
"uniqueItems": true,
"description": "Affiliation(s) for the purpose of this specific record.",
"type": "array"
},
"name": {
"description": "Full name of person. Personal name format: family, given.",
"type": "string"
},
"ids": {
"items": {
"additionalProperties": false,
"properties": {
"source": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"uniqueItems": true,
"description": "List of IDs related with the person.",
"type": "array"
}
},
"type": "object"
},
"copyright": {
"properties": {
"year": {
"format": "date-time",
"description": "The year during which the claimed copyright for the CreativeWork was first asserted.",
"type": "string"
},
"holder": {
"description": "The party holding the legal copyright to the record.",
"type": "string"
},
"url": {
"format": "url",
"type": "string"
}
},
"type": "object"
},
"description": {
"description": "An account of the resource. Description may include but is not limited to: an abstract, a table of contents, a graphical representation, or a free-text account of the resource.",
"additionalProperties": false,
"required": [
"value"
],
"properties": {
"source": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"keywords": {
"items": {
"type": "object"
},
"type": "array"
},
"identifier": {
"additionalProperties": false,
"description": "An unambiguous reference to the resource within a given context.",
"properties": {
"source": {
"type": "string"
},
"value": {
"type": "string"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"license": {
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"material": {
"title": "Material",
"type": "string"
},
"url": {
"format": "url",
"title": "URL of the license",
"type": "string"
}
},
"title": "License",
"type": "object"
},
"title": "License information",
"type": "array",
"uniqueItems": true
},
"date": {
"format": "date-time",
"description": "A point or period of time associated with an event in the lifecycle of the resource. (http://www.w3.org/TR/NOTE-datetime)",
"type": "string"
},
"contributor": {
"description": "An entity responsible for making contributions to the resource. Examples of a Contributor include a person, an organization, or a service. Typically, the name of a Contributor should be used to indicate the entity.",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"email": {
"format": "email",
"description": "Contact email for the purpose of this specific record.",
"type": "string"
},
"role": {
"type": "string"
},
"name": {
"description": "Full name of person. Personal name format: family, given.",
"type": "string"
},
"contribution": {
"description": "Specific contribution of the person to this specific record.",
"type": "string"
},
"affiliations": {
"items": {
"type": "string"
},
"uniqueItems": true,
"description": "Affiliation(s) for the purpose of this specific record.",
"type": "array"
},
"ids": {
"items": {
"additionalProperties": false,
"properties": {
"source": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"uniqueItems": true,
"description": "List of IDs related with the person.",
"type": "array"
}
},
"type": "object"
},
"file": {
"description": "A file object described using some basic subfields. (Usually to be extended).",
"properties": {
"key": {
"type": "string"
},
"checksum": {
"type": "string"
},
"category": {
"description": "Former BibDocFile.doctype.",
"type": "string"
},
"bucket": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"description": "File type extension.",
"type": "string"
},
"version_id": {
"type": "string"
}
},
"type": "object"
}
},
"properties": {
"report_number": {
"type": "object",
Expand Down
Loading

0 comments on commit 23a04f4

Please sign in to comment.