R

Ravina • 3.96K Points
Extraordinary

Q. What does `response_model_exclude_unset=True` do?

  • (A) Excludes all fields
  • (B) Includes all fields even if unset
  • (C) Excludes fields that were not set by the user
  • (D) Throws error on unset fields
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina

This option ensures that only the fields that were explicitly set are included in the response.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.