{"action":"created","issue":{"url":"https://api.github.com/repos/CESNET/libyang/issues/175","repository_url":"https://api.github.com/repos/CESNET/libyang","labels_url":"https://api.github.com/repos/CESNET/libyang/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/CESNET/libyang/issues/175/comments","events_url":"https://api.github.com/repos/CESNET/libyang/issues/175/events","html_url":"https://github.com/CESNET/libyang/issues/175","id":186037287,"number":175,"title":"Having different order of bits in XML data fails to parse","user":{"login":"abhikeshav","id":17089095,"avatar_url":"https://avatars.githubusercontent.com/u/17089095?v=3","gravatar_id":"","url":"https://api.github.com/users/abhikeshav","html_url":"https://github.com/abhikeshav","followers_url":"https://api.github.com/users/abhikeshav/followers","following_url":"https://api.github.com/users/abhikeshav/following{/other_user}","gists_url":"https://api.github.com/users/abhikeshav/gists{/gist_id}","starred_url":"https://api.github.com/users/abhikeshav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhikeshav/subscriptions","organizations_url":"https://api.github.com/users/abhikeshav/orgs","repos_url":"https://api.github.com/users/abhikeshav/repos","events_url":"https://api.github.com/users/abhikeshav/events{/privacy}","received_events_url":"https://api.github.com/users/abhikeshav/received_events","type":"User","site_admin":false},"labels":[{"id":186652458,"url":"https://api.github.com/repos/CESNET/libyang/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"rkrejci","id":6471899,"avatar_url":"https://avatars.githubusercontent.com/u/6471899?v=3","gravatar_id":"","url":"https://api.github.com/users/rkrejci","html_url":"https://github.com/rkrejci","followers_url":"https://api.github.com/users/rkrejci/followers","following_url":"https://api.github.com/users/rkrejci/following{/other_user}","gists_url":"https://api.github.com/users/rkrejci/gists{/gist_id}","starred_url":"https://api.github.com/users/rkrejci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkrejci/subscriptions","organizations_url":"https://api.github.com/users/rkrejci/orgs","repos_url":"https://api.github.com/users/rkrejci/repos","events_url":"https://api.github.com/users/rkrejci/events{/privacy}","received_events_url":"https://api.github.com/users/rkrejci/received_events","type":"User","site_admin":false},"assignees":[{"login":"rkrejci","id":6471899,"avatar_url":"https://avatars.githubusercontent.com/u/6471899?v=3","gravatar_id":"","url":"https://api.github.com/users/rkrejci","html_url":"https://github.com/rkrejci","followers_url":"https://api.github.com/users/rkrejci/followers","following_url":"https://api.github.com/users/rkrejci/following{/other_user}","gists_url":"https://api.github.com/users/rkrejci/gists{/gist_id}","starred_url":"https://api.github.com/users/rkrejci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkrejci/subscriptions","organizations_url":"https://api.github.com/users/rkrejci/orgs","repos_url":"https://api.github.com/users/rkrejci/repos","events_url":"https://api.github.com/users/rkrejci/events{/privacy}","received_events_url":"https://api.github.com/users/rkrejci/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-28T22:38:18Z","updated_at":"2016-10-31T16:47:00Z","closed_at":null,"body":"For below yang:\n\n```\n leaf bits-value {\n          description \"this is bits type value\";\n          type bits {\n            bit disable-nagle {\n              position 0;\n            }\n            bit auto-sense-speed {\n              position 1;\n            }\n          }\n          default \"auto-sense-speed\";\n        }\n```\n\nBoth below XML data fails with error:\n**1)**\n\n```\n     <bits-value>auto-sense-speed disable-nagle</bits-value>\n```\n\n```\nlibyang[0]: Invalid value \"auto-sense-speed disable-nagle\" in \"bits-value\" element. (path: /a:x/bits-value)\n```\n\n**2)**\n\n```\n<bits-value>auto-sense-speed </bits-value>\n```\n\n```\nlibyang[0]: Invalid value \"auto-sense-speed \" in \"bits-value\" element. (path: /a:x/bits-value)\n```\n\nBut having bits in same order is successfully parsed:\n\n```\n     <bits-value>disable-nagle auto-sense-speed</bits-value>\n```\n"},"comment":{"url":"https://api.github.com/repos/CESNET/libyang/issues/comments/257348681","html_url":"https://github.com/CESNET/libyang/issues/175#issuecomment-257348681","issue_url":"https://api.github.com/repos/CESNET/libyang/issues/175","id":257348681,"user":{"login":"abhikeshav","id":17089095,"avatar_url":"https://avatars.githubusercontent.com/u/17089095?v=3","gravatar_id":"","url":"https://api.github.com/users/abhikeshav","html_url":"https://github.com/abhikeshav","followers_url":"https://api.github.com/users/abhikeshav/followers","following_url":"https://api.github.com/users/abhikeshav/following{/other_user}","gists_url":"https://api.github.com/users/abhikeshav/gists{/gist_id}","starred_url":"https://api.github.com/users/abhikeshav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhikeshav/subscriptions","organizations_url":"https://api.github.com/users/abhikeshav/orgs","repos_url":"https://api.github.com/users/abhikeshav/repos","events_url":"https://api.github.com/users/abhikeshav/events{/privacy}","received_events_url":"https://api.github.com/users/abhikeshav/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T16:47:00Z","updated_at":"2016-10-31T16:47:00Z","body":"Thanks for the update and for fixing the other issues. Much appreciated!\r\n\r\nThanks,\r\nAbhi"}}
{"actor":{"display_login":"abhikeshav"}}