jambo.types package

Submodules

jambo.types.json_schema_type module

class JSONSchema

Bases: TypedDict

additionalItems: bool | JSONSchema
additionalProperties: bool | JSONSchema
allOf: List[JSONSchema]
anyOf: List[JSONSchema]
const: str | int | float | bool | None | Dict[str, str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]] | List[str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]]
contains: JSONSchema
default: str | int | float | bool | None | Dict[str, str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]] | List[str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]]
dependencies: Dict[str, List[str] | JSONSchema]
description: str
else: JSONSchema
enum: List[str | int | float | bool | None | Dict[str, str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]] | List[str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]]]
examples: List[str | int | float | bool | None | Dict[str, str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]] | List[str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]]]
exclusiveMaximum: bool | float
exclusiveMinimum: bool | float
format: str
if: JSONSchema
maxItems: int
maxLength: int
maxProperties: int
maximum: float
minItems: int
minLength: int
minProperties: int
minimum: float
multipleOf: float
not: JSONSchema
oneOf: List[JSONSchema]
pattern: str
patternProperties: Dict[str, JSONSchema]
prefixItems: List[JSONSchema]
properties: Dict[str, JSONSchema]
required: List[str]
then: JSONSchema
title: str
type: Literal['string', 'number', 'integer', 'boolean', 'object', 'array', 'null'] | List[Literal['string', 'number', 'integer', 'boolean', 'object', 'array', 'null']]
uniqueItems: bool

jambo.types.type_parser_options module

class TypeParserOptions[source]

Bases: TypedDict

context: JSONSchema
ref_cache: MutableMapping[str, ForwardRef | type | None]
required: bool

Module contents

class JSONSchema

Bases: TypedDict

additionalItems: bool | JSONSchema
additionalProperties: bool | JSONSchema
allOf: List[JSONSchema]
anyOf: List[JSONSchema]
const: str | int | float | bool | None | Dict[str, str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]] | List[str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]]
contains: JSONSchema
default: str | int | float | bool | None | Dict[str, str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]] | List[str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]]
dependencies: Dict[str, List[str] | JSONSchema]
description: str
else: JSONSchema
enum: List[str | int | float | bool | None | Dict[str, str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]] | List[str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]]]
examples: List[str | int | float | bool | None | Dict[str, str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]] | List[str | int | float | bool | None | Dict[str, JSONType] | List[JSONType]]]
exclusiveMaximum: bool | float
exclusiveMinimum: bool | float
format: str
if: JSONSchema
maxItems: int
maxLength: int
maxProperties: int
maximum: float
minItems: int
minLength: int
minProperties: int
minimum: float
multipleOf: float
not: JSONSchema
oneOf: List[JSONSchema]
pattern: str
patternProperties: Dict[str, JSONSchema]
prefixItems: List[JSONSchema]
properties: Dict[str, JSONSchema]
required: List[str]
then: JSONSchema
title: str
type: Literal['string', 'number', 'integer', 'boolean', 'object', 'array', 'null'] | List[Literal['string', 'number', 'integer', 'boolean', 'object', 'array', 'null']]
uniqueItems: bool
class TypeParserOptions[source]

Bases: TypedDict

context: JSONSchema
ref_cache: MutableMapping[str, ForwardRef | type | None]
required: bool