Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{ | { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | |||
"$id": "https://readium.org/webpub-manifest/schema/publication.schema.json", | |||
"title": "Readium Web Publication Manifest", | |||
"type": "object", | |||
"properties": { | |||
"@context": { | |||
"type": [ | |||
"string", | |||
"array" | |||
], | |||
"items": { | |||
"type": "string" | |||
}, | |||
"uniqueItems": true | |||
}, | |||
"metadata": { | |||
"$ref": "/w/index.php?title=JsonSchema:WebPublication/Metadata\u0026action=raw" | |||
}, | |||
"links": { | |||
"type": "array", | |||
"items": { | |||
"$ref": "link.schema.json" | |||
}, | |||
"uniqueItems": true, | |||
"allOf": [ | |||
{ | |||
"contains": { | |||
"type": "object", | |||
"properties": { | |||
"rel": { | |||
"anyOf": [ | |||
{ | |||
"type": "string", | |||
"const": "self" | |||
}, | |||
{ | |||
"type": "array", | |||
"contains": { | |||
"const": "self" | |||
} | |||
} | |||
] | |||
} | |||
}, | |||
"required": [ | |||
"rel" | |||
] | |||
} | |||
}, | |||
{ | |||
"contains": { | |||
"type": "object", | |||
"required": [ | |||
"href", | |||
"type", | |||
"rel" | |||
], | |||
"properties": { | |||
"href": { | |||
"type": "string", | |||
"format": "uri-reference" | |||
}, | |||
"type": { | |||
"const": "application/vnd.readium.position-list+json" | |||
}, | |||
"rel": { | |||
"type": "string", | |||
"const": "http://readium.org/position-list" | |||
} | |||
} | |||
} | |||
} | |||
] | |||
}, | |||
"readingOrder": { | |||
"type": "array", | |||
"items": { | |||
"$ref": "/w/index.php?title=JsonSchema:WebPublication/Link\u0026action=raw" | |||
}, | |||
"uniqueItems": true | |||
}, | |||
"resources": { | |||
"type": "array", | |||
"items": { | |||
"$ref": "/w/index.php?title=JsonSchema:WebPublication/Link\u0026action=raw" | |||
}, | |||
"uniqueItems": true | |||
}, | |||
"toc": { | |||
"type": "array", | |||
"items": { | |||
"$ref": "/w/index.php?title=JsonSchema:WebPublication/Link\u0026action=raw" | |||
} | |||
} | |||
}, | |||
"required": [ | |||
"metadata", | |||
"links", | |||
"readingOrder" | |||
], | |||
"additionalProperties": { | |||
"$ref": "/w/index.php?title=JsonSchema:WebPublication/Subcollection\u0026action=raw" | |||
}, | |||
"allOf": [ | |||
{ | |||
"$ref": "/w/index.php?title=JsonSchema:WebPublication/ExtensionsEpubSubcollections\u0026action=raw" | |||
}, | |||
{ | |||
"description": "All resources listed in the reading order should contain a media type.", | |||
"properties": { | |||
"readingOrder": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"required": [ | |||
"type" | |||
] | |||
} | |||
} | |||
} | |||
}, | |||
{ | |||
"description": "All resources listed in the publication should contain a media type.", | |||
"properties": { | |||
"resources": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"required": [ | |||
"type" | |||
] | |||
} | |||
} | |||
} | |||
} | |||
] | |||
} | } |
Revision as of 07:33, 16 September 2025
$schema | "http://json-schema.org/draft-07/schema#" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$id | "https://readium.org/webpub-manifest/schema/publication.schema.json" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title | "Readium Web Publication Manifest" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | "object" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
properties |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
additionalProperties |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
allOf |
|