Models#

class alpaca.common.models.ModelWithID(*, id: UUID)#

This is the base model for response models with IDs that are UUIDs.

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class alpaca.common.models.ValidateBaseModel#

This model simply sets up BaseModel with the validate_assignment flag to True, so we don’t have to keep specifying it or forget to specify it in our models where we want assignment validation

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].