Closed elichad closed 1 month ago
By default, requirement severity is set to REQUIRED
-- i.e., MUST. If you want the "SHOULD" requirements to be tested you need to specify --requirement-severity RECOMMENDED
.
Maybe the severity on the presence of datePublished
needs to be raised to REQUIRED
:
datePublished: MUST be a string in ISO 8601 date format ...
Yes, but as I understand the first line in the quote, the properties MUST all be present, regardless of whether they follow the SHOULD requirements for each item
Hi @elichad. I integrated some changes into the develop branch that make the properties you mentioned REQUIRED, so now the validation should fail if they are not present.
Let us know how it’s going
Just tested the changes - I left one comment about the message for datePublished
https://github.com/crs4/rocrate-validator/pull/16/files#r1795409365 but aside from that all good!
Tested on version 0.2.1.
From Direct properties of the Root Data Entity in RO-Crate 1.1:
Currently, the validation passes even when the last four properties are not present. Only
@type
and@id
cause failures if they are missing or incorrect. Instead, the validation should fail if any of the required properties are missing.Minimal example of crate that reproduces the issue: