{"action":"created","issue":{"url":"https://api.github.com/repos/kimgr/asn1ate/issues/49","repository_url":"https://api.github.com/repos/kimgr/asn1ate","labels_url":"https://api.github.com/repos/kimgr/asn1ate/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/kimgr/asn1ate/issues/49/comments","events_url":"https://api.github.com/repos/kimgr/asn1ate/issues/49/events","html_url":"https://github.com/kimgr/asn1ate/issues/49","id":192077341,"number":49,"title":"Emits invalid python for `BOOLEAN true`","user":{"login":"DeviceIntelligenceUser","id":17178663,"avatar_url":"https://avatars1.githubusercontent.com/u/17178663?v=4","gravatar_id":"","url":"https://api.github.com/users/DeviceIntelligenceUser","html_url":"https://github.com/DeviceIntelligenceUser","followers_url":"https://api.github.com/users/DeviceIntelligenceUser/followers","following_url":"https://api.github.com/users/DeviceIntelligenceUser/following{/other_user}","gists_url":"https://api.github.com/users/DeviceIntelligenceUser/gists{/gist_id}","starred_url":"https://api.github.com/users/DeviceIntelligenceUser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeviceIntelligenceUser/subscriptions","organizations_url":"https://api.github.com/users/DeviceIntelligenceUser/orgs","repos_url":"https://api.github.com/users/DeviceIntelligenceUser/repos","events_url":"https://api.github.com/users/DeviceIntelligenceUser/events{/privacy}","received_events_url":"https://api.github.com/users/DeviceIntelligenceUser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T18:11:55Z","updated_at":"2018-02-24T14:41:31Z","closed_at":null,"author_association":"NONE","body":"With input `Foo DEFINITIONS ::= BEGIN bar BOOLEAN ::= true END`, I get output containing `bar = univ.Boolean(true)`. I would expect to get (1) a parse error; or (2) valid (non-erroring) python code. (The 'T' in 'true' should be capitalized, `True`; currently I get a NameError)\r\n\r\nThe full output is\r\n```\r\n# Auto-generated by asn1ate v.0.5.1.dev from foo.asn\r\n# (last modified on 2016-11-28 19:08:26.094569)\r\n\r\nfrom pyasn1.type import univ, char, namedtype, namedval, tag, constraint, useful\r\n\r\n\r\nbar = univ.Boolean(true)\r\n\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kimgr/asn1ate/issues/comments/368232838","html_url":"https://github.com/kimgr/asn1ate/issues/49#issuecomment-368232838","issue_url":"https://api.github.com/repos/kimgr/asn1ate/issues/49","id":368232838,"user":{"login":"kimgr","id":169074,"avatar_url":"https://avatars0.githubusercontent.com/u/169074?v=4","gravatar_id":"","url":"https://api.github.com/users/kimgr","html_url":"https://github.com/kimgr","followers_url":"https://api.github.com/users/kimgr/followers","following_url":"https://api.github.com/users/kimgr/following{/other_user}","gists_url":"https://api.github.com/users/kimgr/gists{/gist_id}","starred_url":"https://api.github.com/users/kimgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimgr/subscriptions","organizations_url":"https://api.github.com/users/kimgr/orgs","repos_url":"https://api.github.com/users/kimgr/repos","events_url":"https://api.github.com/users/kimgr/events{/privacy}","received_events_url":"https://api.github.com/users/kimgr/received_events","type":"User","site_admin":false},"created_at":"2018-02-24T14:41:31Z","updated_at":"2018-02-24T14:41:31Z","author_association":"OWNER","body":"Sorry this took so long (my time for asn1ate has been very limited), but I got around to experimenting with this today. It turns out that `true` is not a valid value for a `BOOLEAN` -- the valid values are `TRUE` or `FALSE`. There may be cases where a valueref called `true` should be resolved to `TRUE`, but the case you describe above is simply invalid input."}}
{"actor":{"display_login":"kimgr"}}