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: github.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:f215202e-d47e-dd49-8434-9e630ba319fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C580:28656B:733DA9:A03F03:696A29A8 |
| html-safe-nonce | 582beeab68e8b04570df8ecd7c63145de21c3b4724a95e26f434d3b71feb23fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTgwOjI4NjU2Qjo3MzNEQTk6QTAzRjAzOjY5NkEyOUE4IiwidmlzaXRvcl9pZCI6IjM5NzAyNjQ0MzcyOTYzNDM0NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4b78d0829a7298526f9666490b8792745a25bb6e66446911276bca7260d5a99c |
| 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 | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| 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 | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width