by_alias parameter on model_dump() is being ignored
by_alias parameter on model_dump() is being ignored Question: In the following code, we see that the field id is indeed created with the alias of user_id when we print the model_fields. However, when I then call model_dump(alias=True), the returned dict has an id key, but does not have a user_id key as I am expecting. …