R

Ravina • 3.59K Points
Extraordinary

Q. Which of these is true about Pydantic’s `Field()` in FastAPI?

  • (A) Used only for path parameters
  • (B) Used only with file uploads
  • (C) Adds metadata and validation for model fields
  • (D) Restricts to integers only
  • Correct Answer - Option(C)
  • Views: 2
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`Field()` provides extra info and validation options for model fields.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.