Title: parse_data with more detailed error · Issue #99 · CESNET/libyang-python · GitHub
Open Graph Title: parse_data with more detailed error · Issue #99 · CESNET/libyang-python
X Title: parse_data with more detailed error · Issue #99 · CESNET/libyang-python
Description: Hello Team, I am executing xml validation against yang model. In the case of yanglint, I see a more detailed description of the error location. How can I get the same in python? Thanks # yanglint openconfig-interfaces.yang logical.xml li...
Open Graph Description: Hello Team, I am executing xml validation against yang model. In the case of yanglint, I see a more detailed description of the error location. How can I get the same in python? Thanks # yanglint o...
X Description: Hello Team, I am executing xml validation against yang model. In the case of yanglint, I see a more detailed description of the error location. How can I get the same in python? Thanks # yanglint o...
Opengraph URL: https://github.com/CESNET/libyang-python/issues/99
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"parse_data with more detailed error ","articleBody":"Hello Team, \r\n\r\nI am executing xml validation against yang model.\r\nIn the case of yanglint, I see a more detailed description of the error location.\r\nHow can I get the same in python?\r\nThanks\r\n\r\n```\r\n# yanglint openconfig-interfaces.yang logical.xml\r\nlibyang err : Invalid identityref \"ethernetCsmacd\" value - identity not found in module \"openconfig-interfaces\". (Data location \"/openconfig-interfaces:interfaces/interface[name='TenGigE0/0/0/0']/state/type\", line number 129.)\r\n```\r\n\r\n```\r\n# python3 test.py\r\nTraceback (most recent call last):\r\n File \"/libyang_fix/test.py\", line 11, in \u003cmodule\u003e\r\n dnode = ctx.parse_data_mem(string_component, 'xml', validate_present=True, validate_multi_error=True)\r\n File \"/usr/local/lib/python3.10/site-packages/libyang/context.py\", line 411, in parse_data_mem\r\n return self.parse_data(\r\n File \"/usr/local/lib/python3.10/site-packages/libyang/context.py\", line 390, in parse_data\r\n raise self.error(\"failed to parse data tree\")\r\nlibyang.util.LibyangError: failed to parse data tree: Invalid identityref \"ethernetCsmacd\" value - identity not found in module \"openconfig-interfaces\".\r\n```\r\n\r\n","author":{"url":"https://github.com/smark28","@type":"Person","name":"smark28"},"datePublished":"2024-02-08T14:07:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/99/libyang-python/issues/99"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2f311385-4959-b559-2b99-b843e5ffa4df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC06:1DCB7:1A7AF0A:24647B6:698DDE3E |
| html-safe-nonce | a6377c94ce1e43837283f4909e264a0775fb06aef2665da682ee7ef2f1ff0293 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzA2OjFEQ0I3OjFBN0FGMEE6MjQ2NDdCNjo2OThEREUzRSIsInZpc2l0b3JfaWQiOiIyMzI4NDg0NzExNTI3Nzg4MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b528c223c6c189e6b6afba65af2c7a87f719ec3665ebd9873b0b4a0b3c285b39 |
| hovercard-subject-tag | issue:2125268609 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/CESNET/libyang-python/99/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b27e4c9b6caf8c5aed9659425f6d997cadbc1d92b63750ef81027d20ab84e67/CESNET/libyang-python/issues/99 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b27e4c9b6caf8c5aed9659425f6d997cadbc1d92b63750ef81027d20ab84e67/CESNET/libyang-python/issues/99 |
| og:image:alt | Hello Team, I am executing xml validation against yang model. In the case of yanglint, I see a more detailed description of the error location. How can I get the same in python? Thanks # yanglint o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smark28 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 51102c619bffd74bf95dcf3796f0e599d197c0206d70e9e8b5c241b1b9707ee3 |
| turbo-cache-control | no-preview |
| go-import | github.com/CESNET/libyang-python git https://github.com/CESNET/libyang-python.git |
| octolytics-dimension-user_id | 1116469 |
| octolytics-dimension-user_login | CESNET |
| octolytics-dimension-repository_id | 275748507 |
| octolytics-dimension-repository_nwo | CESNET/libyang-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 275748507 |
| octolytics-dimension-repository_network_root_nwo | CESNET/libyang-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fcdeb213ace418f8a19d95dd6b93ba3337346169 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width