R

Ravina • 3.96K Points
Extraordinary

Q. How can FastAPI validate the length of a query parameter?

  • (A) Using Query(min_length=3)
  • (B) Using Length(min=3)
  • (C) Using len()
  • (D) Using Validator()
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
FastAPI provides `min_length`, `max_length`, etc., through `Query()`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.