{"action":"created","issue":{"url":"https://api.github.com/repos/CESNET/libyang/issues/473","repository_url":"https://api.github.com/repos/CESNET/libyang","labels_url":"https://api.github.com/repos/CESNET/libyang/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/CESNET/libyang/issues/473/comments","events_url":"https://api.github.com/repos/CESNET/libyang/issues/473/events","html_url":"https://github.com/CESNET/libyang/issues/473","id":309354167,"number":473,"title":"Validation of a non-existent container fails","user":{"login":"frimpler","id":30437497,"avatar_url":"https://avatars1.githubusercontent.com/u/30437497?v=4","gravatar_id":"","url":"https://api.github.com/users/frimpler","html_url":"https://github.com/frimpler","followers_url":"https://api.github.com/users/frimpler/followers","following_url":"https://api.github.com/users/frimpler/following{/other_user}","gists_url":"https://api.github.com/users/frimpler/gists{/gist_id}","starred_url":"https://api.github.com/users/frimpler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frimpler/subscriptions","organizations_url":"https://api.github.com/users/frimpler/orgs","repos_url":"https://api.github.com/users/frimpler/repos","events_url":"https://api.github.com/users/frimpler/events{/privacy}","received_events_url":"https://api.github.com/users/frimpler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-28T12:53:32Z","updated_at":"2018-04-10T13:49:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nplease have a look at this test case: \r\n\r\nhttps://github.com/frimpler/libyang/commit/767f8d049050a005321b8b1de8ce8ce7f4ae5a20\r\n\r\nIt addresses an issue related to lyd_validation(). The validation fails whenever the must statement of a conditional container has not been met. In such a case, the validation should ignore/skip the validation of this non-existing container. \r\n\r\nBtw.:\r\n\r\n- The validation succeeds currently only if the must statement has been met.\r\n- The test case is derived from a failing copy-config operation implemented by the netconf 2 stack.\r\n\r\nRegards,\r\nFrank"},"comment":{"url":"https://api.github.com/repos/CESNET/libyang/issues/comments/380105010","html_url":"https://github.com/CESNET/libyang/issues/473#issuecomment-380105010","issue_url":"https://api.github.com/repos/CESNET/libyang/issues/473","id":380105010,"user":{"login":"rkrejci","id":6471899,"avatar_url":"https://avatars3.githubusercontent.com/u/6471899?v=4","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},"created_at":"2018-04-10T13:49:53Z","updated_at":"2018-04-10T13:49:53Z","author_association":"CONTRIBUTOR","body":"Hi Frank, let say that we follow your interpretation and do not check the must condition when the container is not explicitely present. Then, following the refered rule, we cannot check the condition even if the container is present, because the result is supposed to be semantically equivalent. But that's obviously wrong, do you agree?"}}
{"actor":{"display_login":"rkrejci"}}