Skip to content

Commit

Permalink
schemas: fix license field
Browse files Browse the repository at this point in the history
* Fixes License field . (addresses CERNDocumentServer/cds-videos#422)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
  • Loading branch information
hachreak authored and egabancho committed Feb 9, 2017
1 parent d62b064 commit 136b67e
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 18 deletions.
48 changes: 44 additions & 4 deletions cds_dojson/schemas/deposits/records/project-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,28 @@
"type": "object"
},
"license": {
"description": "A license document that applies to this content, typically indicated by URL.",
"type": "string"
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"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",
Expand Down Expand Up @@ -487,8 +507,28 @@
"type": "object"
},
"license": {
"description": "A license document that applies to this content, typically indicated by URL.",
"type": "string"
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"material": {
"type": "string"
},
"url": {
"format": "url",
"title": "URL of the license",
"type": "string"
}
},
"title": "License",
"type": "object"
},
"title": "License information",
"type": "array",
"uniqueItems": true
},
"description_translations": {
"items": {
Expand Down
48 changes: 44 additions & 4 deletions cds_dojson/schemas/deposits/records/video-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,28 @@
"description": "An unambiguous reference to the resource within a given context."
},
"license": {
"type": "string",
"description": "A license document that applies to this content, typically indicated by URL."
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"material": {
"type": "string"
},
"url": {
"format": "url",
"title": "URL of the license",
"type": "string"
}
},
"title": "License",
"type": "object"
},
"title": "License information",
"type": "array",
"uniqueItems": true
},
"file": {
"type": "object",
Expand Down Expand Up @@ -462,8 +482,28 @@
"type": "string"
},
"license": {
"type": "string",
"description": "A license document that applies to this content, typically indicated by URL."
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"material": {
"type": "string"
},
"url": {
"format": "url",
"title": "URL of the license",
"type": "string"
}
},
"title": "License",
"type": "object"
},
"title": "License information",
"type": "array",
"uniqueItems": true
},
"contributors": {
"type": "array",
Expand Down
24 changes: 22 additions & 2 deletions cds_dojson/schemas/records/base-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,28 @@
}
},
"license": {
"description": "A license document that applies to this content, typically indicated by URL.",
"type": "string"
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"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": {
"description": "A point or period of time associated with an event in the lifecycle of the resource. (http://www.w3.org/TR/NOTE-datetime)",
Expand Down
48 changes: 44 additions & 4 deletions cds_dojson/schemas/records/project-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,28 @@
}
},
"license": {
"description": "A license document that applies to this content, typically indicated by URL.",
"type": "string"
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"material": {
"type": "string"
},
"url": {
"format": "url",
"title": "URL of the license",
"type": "string"
}
},
"title": "License",
"type": "object"
},
"title": "License information",
"type": "array",
"uniqueItems": true
},
"title_translations": {
"type": "array",
Expand Down Expand Up @@ -500,8 +520,28 @@
]
},
"license": {
"description": "A license document that applies to this content, typically indicated by URL.",
"type": "string"
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"material": {
"type": "string"
},
"url": {
"format": "url",
"title": "URL of the license",
"type": "string"
}
},
"title": "License",
"type": "object"
},
"title": "License information",
"type": "array",
"uniqueItems": true
},
"file": {
"properties": {
Expand Down
48 changes: 44 additions & 4 deletions cds_dojson/schemas/records/video-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,28 @@
"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."
},
"license": {
"type": "string",
"description": "A license document that applies to this content, typically indicated by URL."
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"material": {
"type": "string"
},
"url": {
"format": "url",
"title": "URL of the license",
"type": "string"
}
},
"title": "License",
"type": "object"
},
"title": "License information",
"type": "array",
"uniqueItems": true
},
"language": {
"type": "string",
Expand Down Expand Up @@ -362,8 +382,28 @@
}
},
"license": {
"type": "string",
"description": "A license document that applies to this content, typically indicated by URL."
"items": {
"additionalProperties": false,
"properties": {
"license": {
"title": "License name",
"type": "string"
},
"material": {
"type": "string"
},
"url": {
"format": "url",
"title": "URL of the license",
"type": "string"
}
},
"title": "License",
"type": "object"
},
"title": "License information",
"type": "array",
"uniqueItems": true
},
"contributors": {
"type": "array",
Expand Down

0 comments on commit 136b67e

Please sign in to comment.