jschon.vocabulary.format

class jschon.vocabulary.format.FormatKeyword(parentschema, value)
Parameters
__init__(parentschema, value)
Parameters
evaluate(instance, scope)
Parameters
Return type

None

json: JSON
key: str = 'format'
parentschema: JSONSchema
jschon.vocabulary.format.FormatValidator

The type of a "format" keyword validator.

A FormatValidator is a callable accepting a JSON-compatible Python object as its only argument. It must raise a ValueError if the argument is invalid per the applicable format specification.

alias of Callable[[jschon.json.AnyJSONCompatible], None]