Fix one JavaScript validation or JSON mapping bug
One small function repaired, with source, regression tests and handover. Made with AI.
What you get
- Corrected JavaScript source module
- Executable Node.js regression tests
- README with usage and limitations
Sample
Original demonstration, not client work or a production deployment. Verified 2026-11-07: 10 Node.js tests passed, 0 failed. Example: input {event_id: 'demo-1', source: 'web', email: ' [email protected] ', marketing_consent: false} returns status ready, trimmed email [email protected], email_domain example.com and marketing_consent false. Input with marketing_consent: 'false' returns status review, reason marketing_consent_must_be_boolean and record null. Other checks cover invalid roots, missing fields, malformed email, type mismatches, unknown-field removal and no input mutation. Source and tests available on request. Limits: basic email syntax only; no mailbox verification, persistent deduplication, CRM write or live integration.
Reviews
Reviews appear here after the first orders.