jschon.vocabulary.annotation

class jschon.vocabulary.annotation.ContentEncodingKeyword(parentschema, value)
Parameters
instance_types: Tuple[str, ...] = ('string',)

The types of instance that the keyword can evaluate.

json: JSON
key: str = 'contentEncoding'
parentschema: JSONSchema
class jschon.vocabulary.annotation.ContentMediaTypeKeyword(parentschema, value)
Parameters
instance_types: Tuple[str, ...] = ('string',)

The types of instance that the keyword can evaluate.

json: JSON
key: str = 'contentMediaType'
parentschema: JSONSchema
class jschon.vocabulary.annotation.ContentSchemaKeyword(parentschema, value)
Parameters
evaluate(instance, result)
Parameters
Return type

None

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

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

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

The types of instance that the keyword can evaluate.

json: JSON
key: str = 'contentSchema'
parentschema: JSONSchema
class jschon.vocabulary.annotation.DefaultKeyword(parentschema, value)
Parameters
json: JSON
key: str = 'default'
parentschema: JSONSchema
class jschon.vocabulary.annotation.DeprecatedKeyword(parentschema, value)
Parameters
json: JSON
key: str = 'deprecated'
parentschema: JSONSchema
class jschon.vocabulary.annotation.DescriptionKeyword(parentschema, value)
Parameters
json: JSON
key: str = 'description'
parentschema: JSONSchema
class jschon.vocabulary.annotation.ExamplesKeyword(parentschema, value)
Parameters
json: JSON
key: str = 'examples'
parentschema: JSONSchema
class jschon.vocabulary.annotation.ReadOnlyKeyword(parentschema, value)
Parameters
json: JSON
key: str = 'readOnly'
parentschema: JSONSchema
class jschon.vocabulary.annotation.TitleKeyword(parentschema, value)
Parameters
json: JSON
key: str = 'title'
parentschema: JSONSchema
class jschon.vocabulary.annotation.WriteOnlyKeyword(parentschema, value)
Parameters
json: JSON
key: str = 'writeOnly'
parentschema: JSONSchema