crs4 / rocrate-validator

A Python package to validate RO-Crates
Apache License 2.0
6 stars 7 forks source link

don't print formatted validation report for non-text formats #4

Closed ilveroluca closed 1 month ago

ilveroluca commented 2 months ago

At the moment, the validator only seems to emit json if the output is directed to a file. This issue is to propose not generating the formatted validation report and only emitting the JSON output when a --format different from text is specified (e.g., --format json). Moreover, the JSON output should be directed to stdout by default, or alternatively to any valid destination file specified with -o.