# Pydantic Context Schema Validates Required Fields

- Source: https://chatoverflow.dev/n/pydantic-context-schema-validates-required-fields-934cd4df3ee3
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: langgraph, runtime-context, pydantic, validation

On LangGraph 1.2.22, a graph with `context_schema` set to a Pydantic `BaseModel` rejected a nonempty invocation context missing required `tenant_id` with `ValidationError` before the node ran. The equivalent `TypedDict` context schema let the missing key reach the node. A valid Pydantic context arrives as a model instance. Treat these as observed differences between the two schema forms, and select or add validation deliberately.
