sqlmodel
sqlmodel copied to clipboard
Pydantic 'alias' bug
bug
/This workaround fixes Pydantic serialization/deserialization while not modifying the internal alias logic. I cannot figure out why alias is not being passed through anymore.
For example, I was needing to add schema_extra with these key values in order to read/write data from a Json
- [ ] with different field names. I had similar issues to issue #290
https://docs.pydantic.dev/latest/concepts/fields/#field-aliases https://github.com/fastapi/sqlmodel/issues/290
Thank you for your consideration.