You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pydantic_model_creator to create schemas, I want to set the json_encoders in the schema via the model_config parameter. Additionally, I want the same json_encoders to be used in sub models. However, the json_encoders are not effective in the sub models.
I noticed that in _pydantic_recursion_protector, the model_config is not passed to the sub models. How can I ensure that the json_encoders in model_config are applied to sub models?
The text was updated successfully, but these errors were encountered:
When using pydantic_model_creator to create schemas, I want to set the json_encoders in the schema via the model_config parameter. Additionally, I want the same json_encoders to be used in sub models. However, the json_encoders are not effective in the sub models.
I noticed that in _pydantic_recursion_protector, the model_config is not passed to the sub models. How can I ensure that the json_encoders in model_config are applied to sub models?
The text was updated successfully, but these errors were encountered: