This PR embeds the validation functionality into the existing click CLI by making use of merging multi commands.
Furthermore, it reuses the JsonValidator class of OCR-D/core. For this, minor adjustments in the existing schemas are necessary since JsonValidator examines the JSON file as a whole instead of the single top level objects in the JSON.
While doing this, I also noticed and fixed a bug in the types of the links section in repos.json: If e.g no Dockerfile is present, the type is null, but the schema expects string. The fix makes both possible.
This PR embeds the validation functionality into the existing
click
CLI by making use of merging multi commands.Furthermore, it reuses the
JsonValidator
class of OCR-D/core. For this, minor adjustments in the existing schemas are necessary sinceJsonValidator
examines the JSON file as a whole instead of the single top level objects in the JSON.While doing this, I also noticed and fixed a bug in the
type
s of thelinks
section inrepos.json
: If e.g no Dockerfile is present, the type isnull
, but the schema expectsstring
. The fix makes both possible.Closes #18.