│ │ │ │ │ │ │ │
│ │ │ │

Creating or Extending Validator Classes

│ │ │ │
│ │ │ │
│ │ │ │ -jsonschema.validators.create(meta_schema, validators=(), version=None, type_checker=TypeChecker(_type_checkers=pmap({'number': <function is_number>, 'object': <function is_object>, 'string': <function is_string>, 'boolean': <function is_bool>, 'array': <function is_array>, 'null': <function is_null>, 'integer': <function <lambda>>})), format_checker=<FormatChecker checkers=['date', 'email', 'idn-email', 'idn-hostname', 'ipv4', 'ipv6', 'iri', 'iri-reference', 'json-pointer', 'regex', 'relative-json-pointer', 'uri', 'uri-reference', 'uuid']>, id_of=<function _id_of>, applicable_validators=operator.methodcaller('items'))[source]
│ │ │ │ +jsonschema.validators.create(meta_schema, validators=(), version=None, type_checker=TypeChecker(_type_checkers=pmap({'number': <function is_number>, 'object': <function is_object>, 'integer': <function <lambda>>, 'boolean': <function is_bool>, 'string': <function is_string>, 'array': <function is_array>, 'null': <function is_null>})), format_checker=<FormatChecker checkers=['date', 'email', 'idn-email', 'idn-hostname', 'ipv4', 'ipv6', 'iri', 'iri-reference', 'json-pointer', 'regex', 'relative-json-pointer', 'uri', 'uri-reference', 'uuid']>, id_of=<function _id_of>, applicable_validators=operator.methodcaller('items'))[source] │ │ │ │

Create a new validator class.

│ │ │ │
│ │ │ │
Parameters:
│ │ │ │
    │ │ │ │
  • meta_schema (collections.abc.Mapping) – the meta schema for the new validator class

  • │ │ │ │
  • validators (collections.abc.Mapping) –

    a mapping from names to callables, where each callable will │ │ │ │ validate the schema property with the given name.

    │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -6,20 +6,20 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ****** Creating or Extending Validator Classes¶ ****** │ │ │ │ │ jsonschema.validators.create(meta_schema, validators=(), version=None, │ │ │ │ │ type_checker=TypeChecker(_type_checkers=pmap({'number': , │ │ │ │ │ - 'object': , 'string': , 'boolean': │ │ │ │ │ - , 'array': , 'null': , │ │ │ │ │ - 'integer': >})), format_checker=, id_of=, │ │ │ │ │ + 'object': , 'integer': >, 'boolean': │ │ │ │ │ + , 'string': , 'array': , 'null': })), format_checker=, id_of=, │ │ │ │ │ applicable_validators=operator.methodcaller('items'))[source]¶ │ │ │ │ │ Create a new validator class. │ │ │ │ │ Returns: │ │ │ │ │ a new jsonschema.protocols.Validator class │ │ │ │ │ jsonschema.validators.extend(validator, validators=(), version=None, │ │ │ │ │ type_checker=None, format_checker=None)[source]¶ │ │ │ │ │ Create a new validator class by extending an existing one. │ │ │ ├── ./usr/share/doc/python-jsonschema-doc/html/searchindex.js │ │ │ │ ├── js-beautify {} │ │ │ │ │ @@ -12,24 +12,24 @@ │ │ │ │ │ "_type_check": 0, │ │ │ │ │ "pmap": [0, 5], │ │ │ │ │ "number": [0, 1, 3, 5], │ │ │ │ │ "function": [0, 1, 2, 4, 5], │ │ │ │ │ "is_numb": 0, │ │ │ │ │ "object": [0, 1, 2, 3, 4, 5], │ │ │ │ │ "is_object": 0, │ │ │ │ │ - "string": [0, 1, 2, 3, 5], │ │ │ │ │ - "is_str": 0, │ │ │ │ │ + "integ": [0, 1, 5], │ │ │ │ │ + "lambda": [0, 1], │ │ │ │ │ "boolean": [0, 5], │ │ │ │ │ "is_bool": 0, │ │ │ │ │ + "string": [0, 1, 2, 3, 5], │ │ │ │ │ + "is_str": 0, │ │ │ │ │ "arrai": [0, 1, 5], │ │ │ │ │ "is_arrai": 0, │ │ │ │ │ "null": 0, │ │ │ │ │ "is_nul": 0, │ │ │ │ │ - "integ": [0, 1, 5], │ │ │ │ │ - "lambda": [0, 1], │ │ │ │ │ "format_check": [0, 5], │ │ │ │ │ "formatcheck": [0, 1, 2, 5], │ │ │ │ │ "checker": [0, 1, 5], │ │ │ │ │ "date": [0, 2, 5], │ │ │ │ │ "email": [0, 5], │ │ │ │ │ "idn": [0, 5], │ │ │ │ │ "hostnam": [0, 5],