-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
258d2bb
commit 98a22ab
Showing
13 changed files
with
826 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...ace/manager/resources/opds2_schema/cached/drafts.opds.io/schema_feed-metadata.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://drafts.opds.io/schema/feed-metadata.schema.json", | ||
"title": "OPDS Metadata", | ||
"type": "object", | ||
"properties": { | ||
"identifier": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"title": { | ||
"type": [ | ||
"string", | ||
"array", | ||
"object" | ||
] | ||
}, | ||
"subtitle": { | ||
"type": [ | ||
"string", | ||
"array", | ||
"object" | ||
] | ||
}, | ||
"modified": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"itemsPerPage": { | ||
"type": "integer", | ||
"exclusiveMinimum": 0 | ||
}, | ||
"currentPage": { | ||
"type": "integer", | ||
"exclusiveMinimum": 0 | ||
}, | ||
"numberOfItems": { | ||
"type": "integer", | ||
"minimum": 0 | ||
} | ||
}, | ||
"required": [ | ||
"title" | ||
] | ||
} |
155 changes: 155 additions & 0 deletions
155
src/palace/manager/resources/opds2_schema/cached/drafts.opds.io/schema_feed.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://drafts.opds.io/schema/feed.schema.json", | ||
"title": "OPDS Feed", | ||
"type": "object", | ||
"properties": { | ||
"metadata": { | ||
"description": "Contains feed-level metadata such as title or number of items", | ||
"$ref": "feed-metadata.schema.json" | ||
}, | ||
"links": { | ||
"description": "Feed-level links such as search or pagination", | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/link.schema.json" | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1, | ||
"contains": { | ||
"properties": { | ||
"rel": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"const": "self" | ||
}, | ||
{ | ||
"type": "array", | ||
"contains": { | ||
"const": "self" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"rel" | ||
] | ||
} | ||
}, | ||
"publications": { | ||
"description": "A list of publications that can be acquired", | ||
"type": "array", | ||
"items": { | ||
"$ref": "publication.schema.json" | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1 | ||
}, | ||
"navigation": { | ||
"description": "Navigation for the catalog using links", | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/link.schema.json" | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1, | ||
"allOf": [ | ||
{ | ||
"description": "Each Link Object in a navigation collection must contain a title", | ||
"items": { | ||
"required": [ | ||
"title" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"facets": { | ||
"description": "Facets are meant to re-order or obtain a subset for the current list of publications", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"metadata": { | ||
"$ref": "feed-metadata.schema.json" | ||
}, | ||
"links": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/link.schema.json" | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1 | ||
} | ||
} | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1 | ||
}, | ||
"groups": { | ||
"description": "Groups provide a curated experience, grouping publications or navigation links together", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"metadata": { | ||
"$ref": "feed-metadata.schema.json" | ||
}, | ||
"links": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/link.schema.json" | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1 | ||
}, | ||
"publications": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "publication.schema.json" | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1 | ||
}, | ||
"navigation": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/link.schema.json" | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1 | ||
} | ||
}, | ||
"required": [ | ||
"metadata" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"metadata", | ||
"links" | ||
], | ||
"additionalProperties": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/subcollection.schema.json" | ||
}, | ||
"anyOf": [ | ||
{ | ||
"required": [ | ||
"publications" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"navigation" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"groups" | ||
] | ||
} | ||
] | ||
} |
82 changes: 82 additions & 0 deletions
82
...alace/manager/resources/opds2_schema/cached/drafts.opds.io/schema_publication.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://drafts.opds.io/schema/publication.schema.json", | ||
"title": "OPDS Publication", | ||
"type": "object", | ||
"properties": { | ||
"metadata": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/metadata.schema.json" | ||
}, | ||
"links": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/link.schema.json" | ||
}, | ||
"contains": { | ||
"description": "A publication must contain at least one acquisition link.", | ||
"properties": { | ||
"rel": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"preview", | ||
"http://opds-spec.org/acquisition", | ||
"http://opds-spec.org/acquisition/buy", | ||
"http://opds-spec.org/acquisition/open-access", | ||
"http://opds-spec.org/acquisition/borrow", | ||
"http://opds-spec.org/acquisition/sample", | ||
"http://opds-spec.org/acquisition/subscribe" | ||
] | ||
}, | ||
{ | ||
"type": "array", | ||
"contains": { | ||
"type": "string", | ||
"enum": [ | ||
"preview", | ||
"http://opds-spec.org/acquisition", | ||
"http://opds-spec.org/acquisition/buy", | ||
"http://opds-spec.org/acquisition/open-access", | ||
"http://opds-spec.org/acquisition/borrow", | ||
"http://opds-spec.org/acquisition/sample", | ||
"http://opds-spec.org/acquisition/subscribe" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"images": { | ||
"description": "Images are meant to be displayed to the user when browsing publications", | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://readium.org/webpub-manifest/schema/link.schema.json" | ||
}, | ||
"minItems": 1, | ||
"allOf": [ | ||
{ | ||
"description": "At least one image resource must use one of the following formats: image/jpeg, image/avif, image/png or image/gif.", | ||
"contains": { | ||
"properties": { | ||
"type": { | ||
"enum": [ | ||
"image/jpeg", | ||
"image/avif", | ||
"image/png", | ||
"image/gif" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"metadata", | ||
"links" | ||
] | ||
} |
54 changes: 54 additions & 0 deletions
54
...ces/opds2_schema/cached/readium.org/webpub-manifest_schema_contributor-object.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://readium.org/webpub-manifest/schema/contributor-object.schema.json", | ||
"title": "Contributor Object", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"description": "The language in a language map must be a valid BCP 47 tag.", | ||
"type": "object", | ||
"patternProperties": { | ||
"^((?<grandfathered>(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?<language>([A-Za-z]{2,3}(-(?<extlang>[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?<script>[A-Za-z]{4}))?(-(?<region>[A-Za-z]{2}|[0-9]{3}))?(-(?<variant>[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?<extension>[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?<privateUse>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUse2>x(-[A-Za-z0-9]{1,8})+))$": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"minProperties": 1 | ||
} | ||
] | ||
}, | ||
"identifier": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"sortAs": { | ||
"type": "string" | ||
}, | ||
"role": { | ||
"type": [ | ||
"string", | ||
"array" | ||
], | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"position": { | ||
"type": "number" | ||
}, | ||
"links": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "link.schema.json" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
] | ||
} |
Oops, something went wrong.