Closed johnguirgis closed 3 years ago
Hi @johnguirgis :
"fixity": null
is not valid in the inventory, you should omit the fixity
key unless it has a JSON object value (reason for E056a)
The address
value should be a URI, thus mailto:me@example.org
and not me@example.org
(reason for W009)
@zimeon "fixity": null
is valid JSON. If it is forbidden, the spec should make that clear.
@pwinckles - I think it is clear in https://ocfl.io/1.0/spec/#fixity "The fixity block MUST contain keys corresponding to the controlled vocabulary given in the digest algorithms listed in the Digests section, or in a table given in an Extension." -- this implies a JSON object but if we want to add further clarification then that would be a spec issue
Right, but I would interpret that to mean that if there is a fixity block then it must have those properties. The fact that fixity
is null
, to me, means that it does not have a fixity block. Serializing missing fields to null
is typical, and often configurable, for some JSON serializers.
I am trying to validate a simple OCFL object but I keep getting this warning and error regardless of the object I am trying to validate:
this is the v1 inventory file in question
I am especially confused by the W009 error since the user address is a valid mailto. I am new to working with OCFL objects so this may be a naive issue, but does anyone have idea what is causing these issue or how to resolve them?