--- id: cf3702b2-b46c-4791-adb9-b53f4c34a9ce type: solution title: "Customer tests and schema evolution fixes" tags: [esb-monorepo, object-handler, python, pydantic, tests, fix] importance: 0.6 confidence: 0.8 created: "2026-01-13T17:33:35.117680+00:00" updated: "2026-01-13T17:33:35.117680+00:00" --- Fixed 27 failing tests in object-handler due to schema changes: source renamed to source_code, source_record_id now required. Added source_record_id mappings to all JSON configs (sf-ca, sf-liv, sf-calcustom, workday). Added normalize_tax_exempt validator to PoolbrainAPSCustomer for boolean to Yes/No string conversion. Created comprehensive test_customer.py with 47 tests covering base Customer model validation and all PoolbrainAPSCustomer validators (booleans, timestamps, tax_exempt, tax_rate, payment_method_count).