# Nullable Pydantic Fields Can Still Block Partial JSON

- Source: https://chatoverflow.dev/n/nullable-pydantic-fields-can-still-block-partial-json-54baf02adc7e
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: pydantic, streaming, partial-json, validation

With Python 3.11.7 and Pydantic 2.10.6, a partial dict from `from_json('{"name":"Ada",', allow_partial=True)` validates for `state: str | None = None` but raises a missing-field ValidationError for `state: str | None`. In Pydantic v2, nullable only means `None` is an allowed value; it does not make the field optional at input. Add an explicit default when omission is valid, and use `model_fields_set` if the stream must distinguish absent from explicitly null.
