<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>The Pydantic v2 Textbook on Manvendra Rajpoot</title>
    <link>https://blog.rajpoot.dev/textbooks/pydantic/</link>
    <description>Recent content in The Pydantic v2 Textbook on Manvendra Rajpoot</description>
    <image>
      <title>Manvendra Rajpoot</title>
      <url>https://blog.rajpoot.dev/img/personal/cover.png</url>
      <link>https://blog.rajpoot.dev/img/personal/cover.png</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Manvendra Rajpoot</copyright>
    <atom:link href="https://blog.rajpoot.dev/textbooks/pydantic/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Pydantic v2 Textbook Ch. 1 — Introduction and the v2 Mental Model</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/01-introduction-and-mental-model/</link>
      <pubDate>Sat, 09 May 2026 06:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/01-introduction-and-mental-model/</guid>
      <description>Chapter 1 — Pydantic v2 introduction: BaseModel, validation vs serialization, the v2 architecture.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 2 — Fields, Types, and Constraints</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/02-fields-types-constraints/</link>
      <pubDate>Sat, 09 May 2026 06:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/02-fields-types-constraints/</guid>
      <description>Chapter 2 — Pydantic v2 fields, types, constraints, defaults, aliases.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 3 — Validators in Depth</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/03-validators/</link>
      <pubDate>Sat, 09 May 2026 06:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/03-validators/</guid>
      <description>Chapter 3 — Pydantic v2 validators: field_validator, model_validator, before/after, BeforeValidator/AfterValidator.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 4 — Serialization in Depth</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/04-serialization/</link>
      <pubDate>Sat, 09 May 2026 06:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/04-serialization/</guid>
      <description>Chapter 4 — Pydantic v2 serialization: model_dump, model_dump_json, custom serializers, exclude, mode.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 5 — Nested Models, Generics, and Discriminated Unions</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/05-nested-generics-unions/</link>
      <pubDate>Sat, 09 May 2026 06:40:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/05-nested-generics-unions/</guid>
      <description>Chapter 5 — Pydantic v2: nested models, generic models, discriminated unions.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 6 — Custom Types and TypeAdapter</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/06-custom-types-typeadapter/</link>
      <pubDate>Sat, 09 May 2026 06:50:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/06-custom-types-typeadapter/</guid>
      <description>Chapter 6 — Pydantic v2 custom types, RootModel, TypeAdapter, dataclass integration.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 7 — Strict Mode and Coercion</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/07-strict-mode-coercion/</link>
      <pubDate>Sat, 09 May 2026 07:00:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/07-strict-mode-coercion/</guid>
      <description>Chapter 7 — Pydantic v2 strict mode, lax mode, per-field strict types, and coercion rules.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 8 — JSON Schema Generation</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/08-json-schema/</link>
      <pubDate>Sat, 09 May 2026 07:10:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/08-json-schema/</guid>
      <description>Chapter 8 — Pydantic v2 JSON Schema generation, OpenAPI integration, custom schemas.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 9 — Settings (pydantic-settings)</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/09-settings/</link>
      <pubDate>Sat, 09 May 2026 07:20:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/09-settings/</guid>
      <description>Chapter 9 — pydantic-settings: env vars, .env files, secrets, layered config, CLI integration.</description>
    </item>
    <item>
      <title>Pydantic v2 Textbook Ch. 10 — Performance, FastAPI Integration, and Alternatives</title>
      <link>https://blog.rajpoot.dev/textbooks/pydantic/10-performance-and-alternatives/</link>
      <pubDate>Sat, 09 May 2026 07:30:00 +0530</pubDate>
      <guid>https://blog.rajpoot.dev/textbooks/pydantic/10-performance-and-alternatives/</guid>
      <description>Chapter 10 — Pydantic performance, FastAPI integration patterns, and alternatives (msgspec, attrs).</description>
    </item>
  </channel>
</rss>
