{"action":"closed","issue":{"url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/issues/2558","repository_url":"https://api.github.com/repos/adambard/learnxinyminutes-docs","labels_url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/issues/2558/labels{/name}","comments_url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/issues/2558/comments","events_url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/issues/2558/events","html_url":"https://github.com/adambard/learnxinyminutes-docs/issues/2558","id":187535685,"number":2558,"title":"[yaml/en] Not necessary to quote '1' to be interpreted as a number.","user":{"login":"tomjakubowski","id":667901,"avatar_url":"https://avatars.githubusercontent.com/u/667901?v=3","gravatar_id":"","url":"https://api.github.com/users/tomjakubowski","html_url":"https://github.com/tomjakubowski","followers_url":"https://api.github.com/users/tomjakubowski/followers","following_url":"https://api.github.com/users/tomjakubowski/following{/other_user}","gists_url":"https://api.github.com/users/tomjakubowski/gists{/gist_id}","starred_url":"https://api.github.com/users/tomjakubowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomjakubowski/subscriptions","organizations_url":"https://api.github.com/users/tomjakubowski/orgs","repos_url":"https://api.github.com/users/tomjakubowski/repos","events_url":"https://api.github.com/users/tomjakubowski/events{/privacy}","received_events_url":"https://api.github.com/users/tomjakubowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-06T01:40:36Z","updated_at":"2016-11-11T21:34:31Z","closed_at":"2016-11-11T21:34:31Z","body":"Near the top of the [YAML page](https://learnxinyminutes.com/docs/yaml/):\r\n\r\n```\r\n# If you want to use number 1 as a value, you have to enclose it in quotes, \r\n# otherwise, YAML parser will assume that it is a boolean value of true.\r\nscientific_notation: 1e+12\r\n```\r\n\r\nHowever, the YAML 1.2 spec doesn't suggest this interpretation at all: http://www.yaml.org/spec/1.2/spec.html#id2803629\r\n\r\nThe YAML online parser (which uses pyyaml), [interprets `1` as an integer](https://yaml-online-parser.appspot.com/?yaml=1&type=canonical_yaml):\r\n\r\n```\r\n\n---\r\n\n---\r\n!!int \"1\"\r\n```\r\n\r\nAs far as I can tell, it's not possible to create a boolean from a numeric literal [even with an explicit tag](https://yaml-online-parser.appspot.com/?yaml=!!bool+1&type=canonical_yaml):\r\n\r\n```\r\n!!bool 1\r\n# produces error with pyyaml\r\n``` "}}
{"actor":{"display_login":"samcv"}}