Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

Why I Don't Put Tenant-Specific Validation in My FastAPI Endpoints

Multi-tenant applications have a way of turning simple endpoints into surprisingly complicated pieces of code. At first, tenant-specific validation seems harmless.

  • Tenant-specific validation complicates fastapi endpoints as they take on too many responsibilities.
  • Pydantic v2's validation context allows tenant-specific rules without hard-coding tenant names.

More from Monday 10 August →