JsonSchema:WebPublication/Publication

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