Skip to content
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

TypeError: Object of type 'ODMReferenceInfo' is not JSON serializable #5

Closed
jet10000 opened this issue Oct 19, 2020 · 1 comment · Fixed by #19
Closed

TypeError: Object of type 'ODMReferenceInfo' is not JSON serializable #5

jet10000 opened this issue Oct 19, 2020 · 1 comment · Fixed by #19
Labels
bug Something isn't working

Comments

@jet10000
Copy link

jet10000 commented Oct 19, 2020

te-packages/fastapi/utils.py", line 24, in get_model_definitions
    m_schema, m_definitions, m_nested_models = model_process_schema(
  File "pydantic/schema.py", line 467, in pydantic.schema.model_process_schema
  File "pydantic/schema.py", line 503, in pydantic.schema.model_type_schema
  File "pydantic/schema.py", line 184, in pydantic.schema.field_schema
  File "pydantic/schema.py", line 767, in pydantic.schema.encode_default
  File "pydantic/json.py", line 62, in pydantic.json.pydantic_encoder
TypeError: Object of type 'ODMReferenceInfo' is not JSON serializable

image

image

@art049
Copy link
Owner

art049 commented Oct 20, 2020

Hi, thanks for the issue, I will have a look.

@art049 art049 added the bug Something isn't working label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants