All OPDS User Profile documents must be served using the application/opds-profile+json
media type.
{
"name": "John Smith",
"email": "[email protected]",
"links": [
{
"rel": "edit",
"href": "https://example.com/user/edit",
"type": "text/html"
}
],
"loans": {
"total": 10,
"available": 5
},
"holds": {
"total": 5,
"available": 5
}
}
A JSON Schema is available under version control at https://github.com/opds-community/drafts/blob/master/schema/profile.schema.json
For the purpose of validating an OPDS User Profile Document, use the following URL: https://drafts.opds.io/schema/profile.schema.json