René's URL Explorer Experiment


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

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2f311385-4959-b559-2b99-b843e5ffa4df
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCC06:1DCB7:1A7AF0A:24647B6:698DDE3E
html-safe-noncea6377c94ce1e43837283f4909e264a0775fb06aef2665da682ee7ef2f1ff0293
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzA2OjFEQ0I3OjFBN0FGMEE6MjQ2NDdCNjo2OThEREUzRSIsInZpc2l0b3JfaWQiOiIyMzI4NDg0NzExNTI3Nzg4MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb528c223c6c189e6b6afba65af2c7a87f719ec3665ebd9873b0b4a0b3c285b39
hovercard-subject-tagissue:2125268609
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/CESNET/libyang-python/99/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5b27e4c9b6caf8c5aed9659425f6d997cadbc1d92b63750ef81027d20ab84e67/CESNET/libyang-python/issues/99
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5b27e4c9b6caf8c5aed9659425f6d997cadbc1d92b63750ef81027d20ab84e67/CESNET/libyang-python/issues/99
og:image:altHello 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesmark28
hostnamegithub.com
expected-hostnamegithub.com
None51102c619bffd74bf95dcf3796f0e599d197c0206d70e9e8b5c241b1b9707ee3
turbo-cache-controlno-preview
go-importgithub.com/CESNET/libyang-python git https://github.com/CESNET/libyang-python.git
octolytics-dimension-user_id1116469
octolytics-dimension-user_loginCESNET
octolytics-dimension-repository_id275748507
octolytics-dimension-repository_nwoCESNET/libyang-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id275748507
octolytics-dimension-repository_network_root_nwoCESNET/libyang-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefcdeb213ace418f8a19d95dd6b93ba3337346169
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/CESNET/libyang-python/issues/99#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FCESNET%2Flibyang-python%2Fissues%2F99
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FCESNET%2Flibyang-python%2Fissues%2F99
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=CESNET%2Flibyang-python
Reloadhttps://patch-diff.githubusercontent.com/CESNET/libyang-python/issues/99
Reloadhttps://patch-diff.githubusercontent.com/CESNET/libyang-python/issues/99
Reloadhttps://patch-diff.githubusercontent.com/CESNET/libyang-python/issues/99
CESNET https://patch-diff.githubusercontent.com/CESNET
libyang-pythonhttps://patch-diff.githubusercontent.com/CESNET/libyang-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FCESNET%2Flibyang-python
Fork 53 https://patch-diff.githubusercontent.com/login?return_to=%2FCESNET%2Flibyang-python
Star 67 https://patch-diff.githubusercontent.com/login?return_to=%2FCESNET%2Flibyang-python
Code https://patch-diff.githubusercontent.com/CESNET/libyang-python
Issues 15 https://patch-diff.githubusercontent.com/CESNET/libyang-python/issues
Pull requests 2 https://patch-diff.githubusercontent.com/CESNET/libyang-python/pulls
Actions https://patch-diff.githubusercontent.com/CESNET/libyang-python/actions
Security 0 https://patch-diff.githubusercontent.com/CESNET/libyang-python/security
Insights https://patch-diff.githubusercontent.com/CESNET/libyang-python/pulse
Code https://patch-diff.githubusercontent.com/CESNET/libyang-python
Issues https://patch-diff.githubusercontent.com/CESNET/libyang-python/issues
Pull requests https://patch-diff.githubusercontent.com/CESNET/libyang-python/pulls
Actions https://patch-diff.githubusercontent.com/CESNET/libyang-python/actions
Security https://patch-diff.githubusercontent.com/CESNET/libyang-python/security
Insights https://patch-diff.githubusercontent.com/CESNET/libyang-python/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/CESNET/libyang-python/issues/99
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/CESNET/libyang-python/issues/99
parse_data with more detailed error https://patch-diff.githubusercontent.com/CESNET/libyang-python/issues/99#top
https://github.com/smark28
https://github.com/smark28
smark28https://github.com/smark28
on Feb 8, 2024https://github.com/CESNET/libyang-python/issues/99#issue-2125268609
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.