Skip to content

Skipping certain checks does not work #126

@elichad

Description

@elichad

I've been trying to run the validator while skipping ro-crate-1.1_5.3 ("Metadata File Descriptor entity: conformsTo property")

rocrate-validator validate -p ro-crate -s ro-crate-1.1_5.3 tests/data/crates/invalid/1_file_descriptor_metadata/invalid_conforms_to/

This still outputs a failure of that requirement:

                                                                                                                                                                
                                                                                                                  [profile: RO-Crate Metadata Specification 1.1]
     [ ro-crate-1.1_5 ]: RO-Crate Metadata File Descriptor REQUIRED properties                                                                                  
                                                                                                                                                                
      RO-Crate Metadata Descriptor MUST be defined according with the requirements details defined in RO-Crate Metadata File Descriptor                         
                                                                                                                                                                
          Failed checks                                                                                                                                         
                                                                                                                                                                
       [ ro-crate-1.1_5.3 ]  Metadata File Descriptor entity: `conformsTo` property:                                                                            
                             Check if the RO-Crate Metadata File Descriptor has a conformsTo property which points to the RO-Crate specification version        
         Detected issues                                                                                                                                        
         - [Violation on <./ro-crate-metadata.json>]: The RO-Crate metadata file descriptor MUST have a `conformsTo` property with the RO-Crate                 
         specification version         

This doesn't happen for all checks - this crate also fails ro-crate-1.1_12.1 ("Data Entity: REQUIRED resource availability"), and when I run the following:

rocrate-validator validate -p ro-crate -s ro-crate-1.1_12.1 tests/data/crates/invalid/1_file_descriptor_metadata/invalid_conforms_to/

the check is successfully skipped, as expected.

The behaviour is the same when using the package programmatically (e.g. through do_entity_test)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions