Skip to content

Commit

Permalink
Mandates phone numbers to be strings (#71)
Browse files Browse the repository at this point in the history
* Phone numbers have to be strings. Fix #69.
  • Loading branch information
libremente authored Oct 10, 2019
1 parent ae4057e commit 68b56af
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ Changelog

All notable changes to this project will be documented in this file.

[core-0.2.1] - 2019-10-10
-------------------------

Changed
~~~~~~~

- Mandates phone numbers to be strings

[core-0.2/it-0.2] - 2019-03-13
------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/en/example/publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ maintenance:
- name: Francesco Rossi
email: "francesco.rossi@comune.reggioemilia.it"
affiliation: Comune di Reggio Emilia
phone: +39 231 13215112
phone: "+3923113215112"

localisation:
localisationReady: yes
Expand Down
3 changes: 2 additions & 1 deletion docs/en/schema.core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ A Contact is an object with the following properties:
must not be obfuscated. To improve resistance against e-mail
collection, use ``\x64`` to replace ``@``, as allowed by the YAML
specification.
- ``phone`` - phone number (with international prefix)
- ``phone`` - phone number (with international prefix). This has to be
a string.
- ``affiliation`` - This key contains an explicit affiliation
information for the technical contact. In case of multiple
maintainers, this can be used to create a relation between each
Expand Down
2 changes: 1 addition & 1 deletion docs/it/example/publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ maintenance:
- name: Francesco Rossi
email: "francesco.rossi@comune.reggioemilia.it"
affiliation: Comune di Reggio Emilia
phone: +39 231 13215112
phone: "+3923113215112"

localisation:
localisationReady: yes
Expand Down
3 changes: 2 additions & 1 deletion docs/it/schema.core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,8 @@ Un Contatto è un oggetto con le seguenti proprietà:
deve essere offuscato. Per migliorare la resistenza contro la
raccolta di indirizzi email, usare ``\x64`` per sostituire ``@``,
siccome questo è permesso dalle specifiche YAML.
- ``phone`` - Numero telefonico (con prefisso internazionale).
- ``phone`` - Numero telefonico (con prefisso internazionale). Questa chiave
deve essere una stringa.
- ``affiliation`` - Questa chiave contiene informazioni esplicite sui
contatti tecnici. Nel caso esistano diversi maintainer, questa chiave
può essere usata per creare relazioni tra diversi contatti tecnici e
Expand Down

0 comments on commit 68b56af

Please sign in to comment.