CamelCaseModel¶
- pydantic model safir.pydantic.CamelCaseModel¶
pydantic.BaseModel
configured to accept camel-case input.This is a convenience class identical to
BaseModel
except with an alias generator configured so that it can be initialized with either camel-case or snake-case keys. Model exports withmodel_dump
ormodel_dump_json
also default to exporting in camel-case.- Parameters:
data (
Any
)- Config:
alias_generator: function = <function to_camel_case at 0x7ff01c54ccc0>
populate_by_name: bool = True