René's URL Explorer Experiment


Title: add_multi_constructor equivalent / unknown tag handler · Issue #385 · nodeca/js-yaml · GitHub

Open Graph Title: add_multi_constructor equivalent / unknown tag handler · Issue #385 · nodeca/js-yaml

X Title: add_multi_constructor equivalent / unknown tag handler · Issue #385 · nodeca/js-yaml

Description: In PyYAML, I can use the add_multi_constructor feature to allow me to define a constructor for multiple tags. I am using it to handle any unknown tags. For example, I could use this to deserialize the document thing1: !someTag asdf thing...

Open Graph Description: In PyYAML, I can use the add_multi_constructor feature to allow me to define a constructor for multiple tags. I am using it to handle any unknown tags. For example, I could use this to deserialize ...

X Description: In PyYAML, I can use the add_multi_constructor feature to allow me to define a constructor for multiple tags. I am using it to handle any unknown tags. For example, I could use this to deserialize ...

Opengraph URL: https://github.com/nodeca/js-yaml/issues/385

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add_multi_constructor equivalent / unknown tag handler","articleBody":"In PyYAML, I can use the `add_multi_constructor` feature to allow me to define a constructor for multiple tags. I am using it to handle any unknown tags. For example, I could use this to deserialize the document\r\n```yaml\r\nthing1: !someTag asdf\r\nthing2: !someOtherTag fdsa\r\n```\r\n\r\ninto the JS structure\r\n```js\r\n{\r\n  thing1: UnknownTag { tag: 'someTag', value: 'asdf' },\r\n  thing2: UnknownTag { tag: 'someOtherTag', value: 'fdsa' }\r\n}\r\n```\r\n\r\nand be able to re-serialize that structure back into equivalent yaml.\r\n\r\nMy use case is to read and modify a tiny part of a big yaml file that has a bunch of domain-specific tags in it. I don't care how the tags are resolved as I'm not reading that part of the file, but currently with js-yaml I can't read it at all because to parse the file in the first place results in an unknown tag error. Even if I set it to skip unknown tags, I can't re-serialize the modified docjument.\r\n\r\nThis is fine with PyYAML as I can use `add_multi_constructor` as defined above to handle any unknown tags, but as far as I can tell this behvaiour is impossible to achieve with js-yaml.","author":{"url":"https://github.com/akdor1154","@type":"Person","name":"akdor1154"},"datePublished":"2017-12-06T02:03:21Z","url":"https://github.com/nodeca/js-yaml/issues/385"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f60855e3-af59-5345-07ae-b3b0fa633598
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC7EE:2E466E:3819C2:4DD074:6AEDB5FC
html-safe-noncee7932b910cfbb1172f0eaee522efe66481de71e5c3b5f2d9a3cb8d9229aa1855
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0VFOjJFNDY2RTozODE5QzI6NEREMDc0OjZBRURCNUZDIiwidmlzaXRvcl9pZCI6IjgzNzAzMzE1MDcyMDAyMTA0MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac84601667038d1cbbe5689e22705e5be886aeefe670901e144c56a267a4b44e46
hovercard-subject-tagissue:279598914
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/nodeca/js-yaml/385/issue_layout
twitter:imagehttps://opengraph.githubassets.com/583e02b4818123b2f060b551390ac7a66df69c79a8915fa437bfefb9a367e69d/nodeca/js-yaml/issues/385
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/583e02b4818123b2f060b551390ac7a66df69c79a8915fa437bfefb9a367e69d/nodeca/js-yaml/issues/385
og:image:altIn PyYAML, I can use the add_multi_constructor feature to allow me to define a constructor for multiple tags. I am using it to handle any unknown tags. For example, I could use this to deserialize ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameakdor1154
hostnamegithub.com
expected-hostnamegithub.com
None1eb5f7cedbc707472687eab1a30e6c4619c00791815622ceaba9694eb161930f
turbo-cache-controlno-preview
go-importgithub.com/nodeca/js-yaml git https://github.com/nodeca/js-yaml.git
octolytics-dimension-user_id723678
octolytics-dimension-user_loginnodeca
octolytics-dimension-repository_id2504175
octolytics-dimension-repository_nwonodeca/js-yaml
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id2504175
octolytics-dimension-repository_network_root_nwonodeca/js-yaml
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
releasef31f9c89203c022acdb651c34ae048cf41764208
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://redirect.github.com/nodeca/js-yaml/issues/385#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodeca%2Fjs-yaml%2Fissues%2F385
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodeca%2Fjs-yaml%2Fissues%2F385
Sign uphttps://redirect.github.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=nodeca%2Fjs-yaml
Reloadhttps://redirect.github.com/nodeca/js-yaml/issues/385
Reloadhttps://redirect.github.com/nodeca/js-yaml/issues/385
Reloadhttps://redirect.github.com/nodeca/js-yaml/issues/385
nodecahttps://redirect.github.com/nodeca
js-yamlhttps://redirect.github.com/nodeca/js-yaml
Codehttps://redirect.github.com/nodeca/js-yaml
Issues5 (5)https://redirect.github.com/nodeca/js-yaml/issues
Pull requests1 (1)https://redirect.github.com/nodeca/js-yaml/pulls
Actionshttps://redirect.github.com/nodeca/js-yaml/actions
Security and quality9 (9)https://redirect.github.com/nodeca/js-yaml/security
Insightshttps://redirect.github.com/nodeca/js-yaml/pulse
https://redirect.github.com/nodeca/js-yaml
New issuehttps://redirect.github.com/login?return_to=https://github.com/nodeca/js-yaml/issues/385
New issuehttps://redirect.github.com/login?return_to=https://github.com/nodeca/js-yaml/issues/385
add_multi_constructor equivalent / unknown tag handlerhttps://redirect.github.com/nodeca/js-yaml/issues/385#top
featurehttps://github.com/nodeca/js-yaml/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com/akdor1154
akdor1154https://github.com/akdor1154
on Dec 6, 2017https://github.com/nodeca/js-yaml/issues/385#issue-279598914
https://redirect.github.com/Thom1729
Thom1729https://redirect.github.com/Thom1729
on Jan 23, 2020https://github.com/nodeca/js-yaml/issues/385#issuecomment-577737092
https://redirect.github.com/tomodutch
tomodutchhttps://redirect.github.com/tomodutch
on Apr 21, 2020https://github.com/nodeca/js-yaml/issues/385#issuecomment-617137646
puzrinhttps://redirect.github.com/puzrin
featurehttps://redirect.github.com/nodeca/js-yaml/issues?q=state%3Aopen%20label%3A%22feature%22
on May 22, 2020https://github.com/nodeca/js-yaml/issues/385#event-3365802381
https://redirect.github.com/rlidwka
rlidwkahttps://redirect.github.com/rlidwka
on Dec 25, 2020https://github.com/nodeca/js-yaml/issues/385#issuecomment-751283791
73ef02chttps://github.com/nodeca/js-yaml/commit/73ef02cfcb63d9f1c5932dadc1fc35f05a25fdbc
https://github.com/nodeca/js-yaml/blob/a0d0caa5aa0f5354fefa9c637cfb7c4c17ef7d02/examples/handle_unknown_types.jshttps://github.com/nodeca/js-yaml/blob/a0d0caa5aa0f5354fefa9c637cfb7c4c17ef7d02/examples/handle_unknown_types.js
rlidwkahttps://redirect.github.com/rlidwka
completedhttps://redirect.github.com/nodeca/js-yaml/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 25, 2020https://github.com/nodeca/js-yaml/issues/385#event-4149205025
Sign up for freehttps://redirect.github.com/signup?return_to=https://github.com/nodeca/js-yaml/issues/385
Sign in to commenthttps://redirect.github.com/login?return_to=https://github.com/nodeca/js-yaml/issues/385
featurehttps://github.com/nodeca/js-yaml/issues?q=state%3Aopen%20label%3A%22feature%22
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.