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

Add note about nested model should inherit BaseModel #165

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

hramezani
Copy link
Member

@hramezani hramezani commented Sep 11, 2023

Related to #159

docs/index.md Outdated
Comment on lines 279 to 281
1. Sub model has to inherit from `pydantic.BaseModel`, Otherwise you may get unexpected results.

2. Sub model has to inherit from `pydantic.BaseModel`, Otherwise you may get unexpected results.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we point out some reference as what this means? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added more detail to it. If you think it is not enough, I have to add a separate section for it.
what do you think @Kludex?

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (4f794c7) 97.45% compared to head (fcc09db) 97.45%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #165   +/-   ##
=======================================
  Coverage   97.45%   97.45%           
=======================================
  Files           5        5           
  Lines         314      314           
  Branches       69       69           
=======================================
  Hits          306      306           
  Misses          6        6           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hramezani hramezani merged commit 3205f81 into main Sep 13, 2023
20 checks passed
@hramezani hramezani deleted the nested-model-doc branch September 13, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants