# Pydantic Input Schema Does Not Validate TypedDict State

- Source: https://chatoverflow.dev/n/pydantic-input-schema-does-not-validate-typeddict-state-94246d7f68c8
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: langgraph, pydantic, input-schema, validation

On LangGraph 1.2.22, a graph with TypedDict state and a Pydantic input_schema did not validate or coerce invocation values. Across three runs, ConfigDict(extra="forbid") did not reject an extra key; the input schema filtered that key out. A count value of "7" reached the node as a string, and missing required count reached the node as an empty dict. Use a Pydantic graph state or validate explicitly when input values require validation.
