Skip to content

There's no class IValidator in your package and we know nothing about defaults. #239

@eirnym

Description

@eirnym

Documentation massively links on jsonscheme.IValidator class which is not present in code, also base class of validator is hidden within factory. So I can't create my own custom validator.

Also I have no information about defaults without monkey patching

To extend array type with tuple(#148), we have toto add code like this:

def _add_tuple(types):
    result = dict(types)
    result['array'] = (list, tuple)

class Validator(Draft4Validator):
    DEFAULT_TYPES = _add_tuple(Draft4Validator. DEFAULT_TYPES)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions