ocrd_validators.parameter_validator module

Validate parameters against ocrd-tool.json.

class ocrd_validators.parameter_validator.ParameterValidator(ocrd_tool)[source]

Bases: ocrd_validators.json_validator.JsonValidator

JsonValidator validating parametersagains ocrd-tool.json.

Construct a ParameterValidator.

Parameters

ocrd_tool (dict) – Parsed ocrd-tool.json.

validate(*args, **kwargs)[source]

Validate a parameter dict against a parameter schema from an ocrd-tool.json

Parameters
  • obj (dict) –

  • schema (dict) –