Excluding/Including fields marked by pydantic. #12
EJEmmett
started this conversation in
Feature Request
Replies: 1 comment
-
Scratch this, did this exact thing on a different section and it worked fine, uncertain about the reason but I think it was my implementation breaking things previously. What I was requesting does work, using the I would close this but github is suboptimal in that regard. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible to add support for pydantics
exclude
andinclude
Field options on nested models?eg:
Exclusions are ignored resulting in something like
Instead of removing those fields while doing the validation and writing to DB
Looking at the implementation you have support for top level exclusion support for the document's ID and revision id, but don't collect any of pydantics
BaseModel.(__exclude_fields__ /__include_fields__)
when encoding documents or BaseModels.If you could look into supporting it that would be very much so appreciate! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions