OCR-D / quiver-back-end

The back end of the OCR-D quality dashboard webapp.
MIT License
1 stars 2 forks source link

Click cli for json validation #23

Closed mweidling closed 2 years ago

mweidling commented 2 years ago

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.

Closes #18.