annif.openapi package

Submodules

annif.openapi.validation module

Custom validator for the Annif API.

class annif.openapi.validation.CustomRequestBodyValidator(*args, **kwargs)

Bases: connexion.decorators.validation.RequestBodyValidator

Custom request body validator that overrides the default error message for the ‘maxItems’ validator for the ‘documents’ property.

validate_schema(data, url)

Validate the request body against the schema.

Module contents