jschon.vocabulary.annotation
- class jschon.vocabulary.annotation.ContentEncodingKeyword(parentschema, value)
- Parameters
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- 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
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- 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
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- evaluate(instance, result)
- Parameters
instance (jschon.json.JSON) –
result (jschon.jsonschema.Result) –
- 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
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- json: JSON
- key: str = 'default'
- parentschema: JSONSchema
- class jschon.vocabulary.annotation.DeprecatedKeyword(parentschema, value)
- Parameters
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- json: JSON
- key: str = 'deprecated'
- parentschema: JSONSchema
- class jschon.vocabulary.annotation.DescriptionKeyword(parentschema, value)
- Parameters
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- json: JSON
- key: str = 'description'
- parentschema: JSONSchema
- class jschon.vocabulary.annotation.ExamplesKeyword(parentschema, value)
- Parameters
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- json: JSON
- key: str = 'examples'
- parentschema: JSONSchema
- class jschon.vocabulary.annotation.ReadOnlyKeyword(parentschema, value)
- Parameters
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- json: JSON
- key: str = 'readOnly'
- parentschema: JSONSchema
- class jschon.vocabulary.annotation.TitleKeyword(parentschema, value)
- Parameters
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- json: JSON
- key: str = 'title'
- parentschema: JSONSchema
- class jschon.vocabulary.annotation.WriteOnlyKeyword(parentschema, value)
- Parameters
parentschema (jschon.jsonschema.JSONSchema) –
value (JSONCompatible) –
- json: JSON
- key: str = 'writeOnly'
- parentschema: JSONSchema