annif.openapi package

Submodules

annif.openapi.validation module

Custom validator for the Annif API.

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

Bases: JSONRequestBodyValidator

Custom request body validator that overrides the default error message for the ‘maxItems’ validator for the ‘documents’ property to prevent logging request body with the contents of all documents.

Module contents