Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Schema - metadata could extend ReadiumWebPubManifest metadata schema? #25

Closed
danielweck opened this issue Dec 28, 2018 · 2 comments

Comments

@danielweck
Copy link
Member

If the title / subtitle situation is harmonized ( see #24 ) would it be possible to use a JSON Schema "extension" mechanism so that OPDS metadat can inherit the dictionary fields already defined in the ReadiumWebPubManifest JSON Schema? The OPDS schema would then only need to specify itemsPerPage currentPage and numberOfItems, thereby avoiding redundant / duplicate definitions.

This:

"itemsPerPage": {
"type": "integer",
"exclusiveMinimum": 0
},
"currentPage": {
"type": "integer",
"exclusiveMinimum": 0
},
"numberOfItems": {
"type": "integer",
"minimum": 0
}

...would extend that:

https://github.com/readium/webpub-manifest/blob/0976680e25852b8a4c4802a052ba750ab3e89284/schema/metadata.schema.json

@danielweck
Copy link
Member Author

Similar issue: #20

@HadrienGardeur
Copy link
Member

I don't think that's a good idea for a feed's metadata since they're quite different potentially from a publication's metadata.

Purely from a JSON Schema perspective, how would "extending" work anyway?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants