cadrumo.application.operations._model_contract module

Canonical strict immutable Pydantic model-graph validation for operations.

require_strict_frozen_operation_model_graph(model_type, *, path, reject_mutable_annotations=True, require_validated_defaults=True)[source]

Refuse any lax Pydantic model reachable from model_type fields.

Return type:

None

Parameters:
  • model_type (type[BaseModel])

  • path (str)

  • reject_mutable_annotations (bool)

  • require_validated_defaults (bool)