<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Request Bodies and Pydantic on DATATWEETS</title><link>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/</link><description>Recent content in Request Bodies and Pydantic on DATATWEETS</description><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2025 Datatweets</copyright><lastBuildDate>Sun, 28 Jun 2026 09:00:00 +0200</lastBuildDate><atom:link href="https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/index.xml" rel="self" type="application/rss+xml"/><item><title>Lesson 1 - Request Bodies with Pydantic</title><link>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-1-request-bodies-with-pydantic/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-1-request-bodies-with-pydantic/</guid><description>Accept data, not just serve it. Declare a Pydantic model, use it as a function parameter to receive a JSON request body as a typed object, and watch FastAPI validate every field before your code runs.</description></item><item><title>Lesson 2 - Field Validation and Constraints</title><link>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-2-field-validation-and-constraints/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-2-field-validation-and-constraints/</guid><description>Tighten your models with constraints. Use Field for string-length and numeric-range rules, write custom checks with field_validator, and see the precise 422 errors each one produces.</description></item><item><title>Lesson 3 - Nested and Complex Models</title><link>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-3-nested-and-complex-models/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-3-nested-and-complex-models/</guid><description>Real data is nested. Use lists, models-within-models, and richer types like datetime and optionals, and let Pydantic validate the whole structure to any depth — with errors that pinpoint the offending field.</description></item><item><title>Lesson 4 - Response Models</title><link>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-4-response-models/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-4-response-models/</guid><description>Your API&amp;rsquo;s output is a contract too. Use response_model to declare and filter what you send back — keeping internal fields out of responses — and adopt the clean separate-input-and-output-models pattern.</description></item><item><title>Lesson 5 - Guided Project: Validated Tasks API</title><link>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-5-guided-project-validated-tasks-api/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/request-bodies-and-pydantic/lesson-5-guided-project-validated-tasks-api/</guid><description>The second version of the course project: let clients create tasks with a validated request body and a shaped response. Combine input/output models, Field constraints, a custom validator, an in-memory store, and proper 404s into a real Tasks API.</description></item></channel></rss>