Skip to content

Incorrect validator docs #320

@leebenson

Description

@leebenson

I spent about an hour trying to implement a custom validator per http://docs.python-cerberus.org/en/stable/customize.html, and finally realised that the docs are wrong!

This:

class MyValidator(Validator):
    def _validate_isodd(self, isodd, field, value):

should be:

class MyValidator(Validator):
    def _validator_isodd(self, isodd, field, value):

i.e. _validate_ -> _validator_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions