jschon.vocabulary.validation

class jschon.vocabulary.validation.ConstKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

key: str = 'const'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.DependentRequiredKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('object',)

The types of instance that the keyword can evaluate.

key: str = 'dependentRequired'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.EnumKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

key: str = 'enum'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.ExclusiveMaximumKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('number',)

The types of instance that the keyword can evaluate.

key: str = 'exclusiveMaximum'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.ExclusiveMinimumKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('number',)

The types of instance that the keyword can evaluate.

key: str = 'exclusiveMinimum'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MaxContainsKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

depends_on: Tuple[str, ...] = ('contains',)

Keywords that must be evaluated before this keyword can be evaluated.

instance_types: Tuple[str, ...] = ('array',)

The types of instance that the keyword can evaluate.

key: str = 'maxContains'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MaxItemsKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('array',)

The types of instance that the keyword can evaluate.

key: str = 'maxItems'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MaxLengthKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('string',)

The types of instance that the keyword can evaluate.

key: str = 'maxLength'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MaxPropertiesKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('object',)

The types of instance that the keyword can evaluate.

key: str = 'maxProperties'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MaximumKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('number',)

The types of instance that the keyword can evaluate.

key: str = 'maximum'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MinContainsKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

depends_on: Tuple[str, ...] = ('contains', 'maxContains')

Keywords that must be evaluated before this keyword can be evaluated.

instance_types: Tuple[str, ...] = ('array',)

The types of instance that the keyword can evaluate.

key: str = 'minContains'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MinItemsKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('array',)

The types of instance that the keyword can evaluate.

key: str = 'minItems'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MinLengthKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('string',)

The types of instance that the keyword can evaluate.

key: str = 'minLength'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MinPropertiesKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('object',)

The types of instance that the keyword can evaluate.

key: str = 'minProperties'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MinimumKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('number',)

The types of instance that the keyword can evaluate.

key: str = 'minimum'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.MultipleOfKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('number',)

The types of instance that the keyword can evaluate.

key: str = 'multipleOf'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.PatternKeyword(parentschema, value)
Parameters:
__init__(parentschema, value)
Parameters:
evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('string',)

The types of instance that the keyword can evaluate.

key: str = 'pattern'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.RequiredKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('object',)

The types of instance that the keyword can evaluate.

key: str = 'required'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.TypeKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

key: str = 'type'

The keyword name as it appears in a schema object.

class jschon.vocabulary.validation.UniqueItemsKeyword(parentschema, value)
Parameters:
  • parentschema (JSONSchema) –

  • value (JSONCompatible) –

evaluate(instance, result)
Parameters:
Return type:

None

instance_types: Tuple[str, ...] = ('array',)

The types of instance that the keyword can evaluate.

key: str = 'uniqueItems'

The keyword name as it appears in a schema object.