swag-payments/spec/definitions/ContactInfo.yaml
Andrew Mayorov 19713fc464 CAPI-125: Impose reasonable limits and enforce specs on model props (#62)
* CAPI-125: Impose reasonable limits and enforce specs on model props

* CAPI-125: Accomodate for ipv6-mapped ipv4 addresses

* CAPI-125: Fix standard id

* CAPI-125: Refine phone number format
2017-05-12 17:23:24 +03:00

15 lines
475 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

description: Контактные данные плательщика
type: object
properties:
email:
description: Адрес электронной почты
type: string
format: email
maxLength: 100
phoneNumber:
description: |
Номер мобильного телефона с международным префиксом согласно
[E.164](https://en.wikipedia.org/wiki/E.164).
type: string
format: '^\+\d{4,15}$'