opds-community / drafts

Contains all the current drafts for the OPDS specifications
36 stars 10 forks source link

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

Closed danielweck closed 5 years ago

danielweck commented 5 years ago

If the title / subtitle situation is harmonized ( see https://github.com/opds-community/drafts/issues/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:

https://github.com/opds-community/drafts/blob/4d82fb9a64f35a174a5f205c23ba623ec010d5ec/schema/feed-metadata.schema.json#L36-L47

...would extend that:

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

danielweck commented 5 years ago

Similar issue: https://github.com/opds-community/drafts/issues/20

HadrienGardeur commented 5 years ago

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?