samvera / iiif_manifest

Other
10 stars 10 forks source link

make metadata not show in the manifest if nil #74

Closed kirkkwang closed 1 year ago

kirkkwang commented 1 year ago

According to pres 3 specs,

The value of the metadata property must be an array of JSON objects...

At the moment if there are no metadata, the metadata field is set to null which will thrown an error on the validator.

image
kirkkwang commented 1 year ago

Can do!

kirkkwang commented 1 year ago

accidentally change something because i misread it, fix here: https://github.com/samvera/iiif_manifest/pull/75