Tagged articles
4 articles
Page 1 of 1
Data STUDIO
Data STUDIO
Apr 1, 2026 · Backend Development

10 Advanced Pydantic Tricks to Strengthen FastAPI Request Validation

The article shows how Pydantic’s default type coercion can silently accept malformed data—dangerous for payment APIs—and presents ten advanced techniques, including strict mode, field constraints, separate create/update/response models, cross‑field validators, custom error handling, reusable types, extra‑field forbidding, nested models, computed fields, and discriminated unions, to enforce robust FastAPI request validation.

API SecurityBackendFastAPI
0 likes · 19 min read
10 Advanced Pydantic Tricks to Strengthen FastAPI Request Validation
Code Mala Tang
Code Mala Tang
May 10, 2025 · Backend Development

Master FastAPI Request Body Validation with Pydantic Models

This guide explains how FastAPI uses Pydantic models to define, validate, and parse JSON and form request bodies, set default values and custom rules, handle nested structures, and return response models, providing a type‑safe, efficient way to build backend APIs.

Backend DevelopmentFastAPIPydantic
0 likes · 8 min read
Master FastAPI Request Body Validation with Pydantic Models
Laravel Tech Community
Laravel Tech Community
Aug 14, 2020 · Backend Development

How to Access HTTP Request Data in Laravel Controllers

This article explains multiple ways to obtain and work with the current HTTP request in Laravel, covering dependency injection in controllers, route parameters, route closures, URL and method retrieval, input handling (including defaults, arrays, and old data), existence checks, and file uploads, with practical code examples.

BackendHTTP requestrequest validation
0 likes · 5 min read
How to Access HTTP Request Data in Laravel Controllers
Programmer DD
Programmer DD
Oct 5, 2019 · Backend Development

Master Elegant Request Parameter Validation in Spring Boot with JSR‑303

This tutorial explains why server‑side request parameter validation is essential, introduces the JSR‑303 Bean Validation standard and its Hibernate Validator implementation, and provides step‑by‑step code examples, Swagger integration tips, and dependency guidance for building robust Spring Boot REST APIs.

Bean ValidationHibernate ValidatorJSR-303
0 likes · 11 min read
Master Elegant Request Parameter Validation in Spring Boot with JSR‑303