| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
This pull request has a merge conflict that needs to be resolved. |
Sorry, something went wrong.
|
Hey @YuriiMotov, I was trying to generate proper API Doc with sqlmodel and fastapi and I saw that this is missing from pydantic. Can I help you with this? |
Sorry, something went wrong.
|
This pull request has a merge conflict that needs to be resolved. |
Sorry, something went wrong.
Fix typo in `exlude_id` Co-authored-by: Yurii Motov <109919500+YuriiMotov@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
These parameters are not currently supported by sqlmodel.Field and people have to use workaround passing them via schema_extra.
This PR will still support that workaround, but will emit a warning encouraging to pass such parameters directly to Field.
exclude_if is only supported by Pydantic version 2.12+.
I parameterized tests to skip if version is less than 2.12. Do we need to handle this in Field and emit warning?