EntitySchema

class app.portfolio.models.entity.entity_schema.EntitySchema[source]

Bases: EntitySchemaBase, Generic

Inheritance diagram of EntitySchema

Inheritance Diagram for EntitySchema

Methods

resolve_forward_references([namespace])

Attributes

annotations

extra_dependency_uids

instance_name

uid

version

annotations: Annotated[frozenset[Annotation], InstanceOf()] = FieldInfo(annotation=NoneType, required=False, default_factory=frozenset, description='The annotations associated with this entity.', exclude_if=<function EntitySchema.<lambda>>)
extra_dependency_uids: frozenset[Uid] = FieldInfo(annotation=NoneType, required=False, default_factory=frozenset, description='Extra dependency UIDs. These can be used to create dependencies in addition to those automatically tracked by the entity.', exclude=True, json_schema_extra={'propagate': False}, repr=False)
property instance_name: str
static resolve_forward_references(namespace: Mapping[str, type] | None = None) None[source]
Parameters:

namespace (Mapping[str, type] | None)

Return type:

None

uid: Uid = FieldInfo(annotation=NoneType, required=True, description='Unique identifier for the entity.', json_schema_extra={'readOnly': True}, validate_default=True)
version: Annotated[int, Gt(gt=0)] = FieldInfo(annotation=NoneType, required=False, default_factory=<lambda>, description='The version of this entity. Incremented when the entity is cloned as part of an update action.', exclude=True, json_schema_extra={'readOnly': True}, validate_default=True, metadata=[Ge(ge=1)])