-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: revert Pydantic custom serializer #435
Conversation
* Only focused on ga4gh.core + Pydantic models
* The custom serializer resulted in `model_dump` to only include minimal fields for ga4gh serialization. This caused issues in downstream apps that leverage FastAPI
Oh, I forgot to check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I guess... 😞
It makes sense to not muck about with the "as json" return, though ideally we would be able to leverage the Rust code in pydantic core for serialization, and not need to introduce a new dependency.
That said, usability is secondary to performance, so I agree this is an improvement. 👍
@ahwagner I updated the hash. Lmk if this is what you think it should be? |
@korikuzma what you wrote is fine. |
@ahwagner I can revert and use a different hash function, I was just basing off of the current implementation in |
The @korikuzma I think this is enough for #225 as long as the only types that will be in arrays with |
@theferrit32 ok, I will go ahead and merge and close #225 |
model_dump
to only include minimal fields for ga4gh serialization. This caused issues in downstream apps that leverage FastAPI