sqlmodel icon indicating copy to clipboard operation
sqlmodel copied to clipboard

Pydantic 'alias' bug

Open STocidlowski opened this issue 7 months ago • 0 comments

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.

STocidlowski avatar May 14 '25 16:05 STocidlowski