italia / publiccode-editor

A web editor to create and edit publiccode.yml files
https://publiccode-editor.developers.italia.it
GNU Affero General Public License v3.0
20 stars 25 forks source link

Use yes/no instead of true/false for boolean keys #48

Closed alranel closed 5 years ago

alranel commented 5 years ago

As discussed in https://github.com/italia/publiccode.yml/issues/8, we should use the literals yes and no values for boolean values instead of true and false, since they are supported by the YAML spec:

A Boolean represents a true/false value. Booleans are formatted as English words (“true”/“false”, “yes”/“no” or “on”/“off”) for readability and may be abbreviated as a single character “y”/“n” or “Y”/“N”.

source: https://yaml.org/type/bool.html

We should probably check whether the YAML library we use for serialization supports this.

sebbalex commented 5 years ago

YAML 1.2 has deprecated bool type y/n/yes/no/on/off. spec Only true and false are valid bool type. @alranel @libremente We should close this issue.