Skip to content

Commit

Permalink
SCH: name, author, license metadata properties (and @context for JSONLD)
Browse files Browse the repository at this point in the history
  • Loading branch information
westurner committed Sep 9, 2016
1 parent e72f0c4 commit c298b08
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nbformat/tests/test4docinfo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@
}
],
"metadata": {
"title": "Test Notebook",
"author": "Jean Tester"
"name": "Test Notebook",
"author": [{'name': "Jean Tester"}],
},
"nbformat": 4,
"nbformat_minor": 0
Expand Down
38 changes: 34 additions & 4 deletions nbformat/v4/nbformat.v4.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"type": "object",
"additionalProperties": true,
"properties": {
"@context": {
"description": "The JSONLD @context of the metadata",
"type": ["string", "object"]
},
"kernelspec": {
"description": "Kernel information.",
"type": "object",
Expand Down Expand Up @@ -60,13 +64,39 @@
"type": "integer",
"minimum": 1
},
"title": {
"description": "The title of the notebook document",
"name": {
"description": "The schema.org/name (title) of the notebook document",
"type": "string"
},
"author": {
"description": "The author(s) of the notebook document",
"type": "string"
"description": "The schema.org/author(s) of the notebook document",
"type": "array",
"items": {
"type": "object",
"properties": {
"@type": {"type": "string"},
"name": {"type": "string"},
"givenName": {"type": "string"},
"familyName": {"type": "string"},
"email": {"type": "email"},
"url": {"type": "url"}
},
"additionalProperties": true
}
},
"license": {
"description": "The schema.org/license(s) of the notebook document with SPDX license key",
"type": "array",
"items": {
"type": "object",
"properties": {
"@type": {"type": "string"},
"name": {"type": "string"},
"description": {"type": "string"},
"url": {"type": "url"}
},
"additionalProperties": true
}
}
}
},
Expand Down

0 comments on commit c298b08

Please sign in to comment.