Skip to content

Commit

Permalink
move examples to defintions and include
Browse files Browse the repository at this point in the history
  • Loading branch information
jassielof committed Feb 24, 2025
1 parent d0f6d8f commit 69ab709
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions hayagriva.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,7 @@
},
"url": {
"description": "Canonical public URL of the entry, can have access date.",
"$ref": "#/definitions/url",
"examples": [
{
"value": "https://www.reddit.com/r/AccidentalRenaissance/comments/er1uxd/japanese_opposition_members_trying_to_block_the/",
"date": "2020-12-29"
}
]
"$ref": "#/definitions/url"
},
"serial-number": {
"description": "Any serial number, including article numbers. If you have serial numbers of well-known schemes like `doi`, you should put them into the serial number as a dictionary. Hayagriva will recognize and specially treat `doi`, `isbn`, `issn`, `pmid`, `pmcid`, and `arxiv`. You can also include `serial` for the serial number when you provide other formats as well.",
Expand Down Expand Up @@ -527,6 +521,13 @@
"$ref": "#/definitions/date"
}
},
"examples": [
"https://typst.app/",
{
"value": "https://www.reddit.com/r/AccidentalRenaissance/comments/er1uxd/japanese_opposition_members_trying_to_block_the/",
"date": "2020-12-29"
}
],
"required": ["value"],
"additionalProperties": false
}
Expand Down

0 comments on commit 69ab709

Please sign in to comment.