tortoise / tortoise/tortoise-orm
[QUESTION] Is there a way to specify fields to be optional in pydantic_model_creator?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 516
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 9
Description
As the title says, how do I make some fields optional using the pydantic_model_creator for my fastapi project? If there is no way, i would go with manual pydantic model. Thank you in advance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the pydantic_model_creator entry point named in the issue and check the project documentation for whether generated fields can be optional. Done means either documenting the supported configuration clearly or defining the missing capability well enough for a maintainer to assess it; no file or test is named in the payload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100