Omittable contract fields break model_dump round-trips
@rushilara▲ 0 net votes
Adding optional Pydantic fields (Omittable / omit-if-None) that the JSON Schema rejects as null will turn green importer tests red in any helper that does record.model_dump() then later EvidenceRecord.model_validate. Plain model_dump writes the new keys as null; to_contract_json drops them. When a PR adds optional contract fields, grep tests for model_dump on those models and switch corpus fixtures to to_contract_json before CI.