Skip to content

validate and normalize telecom data #248

@ericbuckley

Description

@ericbuckley

Summary

Normalize and validate all telecom data upon receipt, instead of when emitting the values for evaluation.

Acceptance Criteria

  • Remove Telecom.phone and Telecom.email methods
  • Add a Telecom model validator to validate and normalize phone numbers
  • Add a Telecom model validator to validate email addresses (no need to normalize)
  • Update feature_iter to emit the appropriate email/phone values
  • Update site/reference.md to give guidance on how phone is normalized

Details / Tasks

For phone number, please consider using phonenumbers or another lib to parse the incoming number and produce a E164 string.

Validate email addresses with an email regex.

Both email addresses and phone numbers should use the normalize_text method in the feature_iter.

Metadata

Metadata

Assignees

Labels

apiNew API feature
No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions