Problem/Motivation

Addresses, telephones and e-mail addresses appear in the static data of every site and in contact-related bundles. The address field of the contributed module has a component structure that a raw dump renders unusable, and telephone and e-mail need normalization more than formatting.

Proposed resolution

  • address: the components as named keys, with the country code resolved to a name in the response language; only registered when the address module is installed.
  • contact: telephone and e-mail values, trimmed, with the raw value preserved alongside any normalized form.
  • No opinion about formatting for display — that is the front end's business.

Remaining tasks

Everything.

Issue fork myrest-3620204

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergeydruua created an issue. See original summary.

sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)