Source code for ocrd_validators.processing_server_config_validator

Validating configuration file for the Processing-Server
from .json_validator import JsonValidator

# TODO: provide a link somewhere in this file as it is done in ocrd_tool.schema.yml but best with a
#  working link. Currently it is here:
#  But that is a PR not merged yet
[docs]class ProcessingServerConfigValidator(JsonValidator): """ JsonValidator validating against the schema for the Processing Server """
[docs] @staticmethod def validate(obj, schema=PROCESSING_SERVER_CONFIG_SCHEMA): """ Validate against schema for Processing-Server """ return JsonValidator.validate(obj, schema)