Skip to content

Commit d95a9e2

Browse files
committed
fix typo, add default type
1 parent 5c0ee18 commit d95a9e2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

layouts/shortcodes/react-schema.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
const formData= {
1515
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
16-
"@type": "SoftwareSouceCode"
16+
"@type": "SoftwareSourceCode"
1717
}
1818

1919
const log = (type) => console.log.bind(console, type);

static/schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const schema = {
55
"media": {"type": "application/json;profile=http://schema.org/SoftwareSourceCode"},
66
"type": "object",
77
"properties": {
8-
"@context": {"type": "string", "format": "uri"},
9-
"@type": {"type": "string"},
8+
"@context": {"type": "string", "format": "uri", "default": "http://schema.org"},
9+
"@type": {"type": "string", "default": "SoftwareSourceCode"},
1010
"name": {"type": "string", "description": "Name of the software"},
1111
"codeRepository": {
1212
"type": "string",
@@ -22,6 +22,7 @@ const schema = {
2222
"format": "http://schema.org/Person",
2323
"type": "object",
2424
"properties": {
25+
"@type": {"type": "string", "default": "Person"},
2526
"givenName": {"type": "string"},
2627
"familyName": { "type": "string" },
2728
"email": {"type": "string"},

0 commit comments

Comments
 (0)