René's URL Explorer Experiment


Title: Bug: @type array causes TypeError in JSON-LD parsing · Issue #1 · JavaScriptSolidServer/solid-shim · GitHub

Open Graph Title: Bug: @type array causes TypeError in JSON-LD parsing · Issue #1 · JavaScriptSolidServer/solid-shim

X Title: Bug: @type array causes TypeError in JSON-LD parsing · Issue #1 · JavaScriptSolidServer/solid-shim

Description: Description When JSON-LD uses an array for @type (which is valid per the JSON-LD spec), solid-shim throws a TypeError because it assumes @type is always a string. Error TypeError: i.@type.replace is not a function Reproduction Use any JS...

Open Graph Description: Description When JSON-LD uses an array for @type (which is valid per the JSON-LD spec), solid-shim throws a TypeError because it assumes @type is always a string. Error TypeError: i.@type.replace i...

X Description: Description When JSON-LD uses an array for @type (which is valid per the JSON-LD spec), solid-shim throws a TypeError because it assumes @type is always a string. Error TypeError: i.@type.replace i...

Opengraph URL: https://github.com/JavaScriptSolidServer/solid-shim/issues/1

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: @type array causes TypeError in JSON-LD parsing","articleBody":"## Description\n\nWhen JSON-LD uses an array for `@type` (which is valid per the JSON-LD spec), solid-shim throws a TypeError because it assumes `@type` is always a string.\n\n## Error\n\n```\nTypeError: i.@type.replace is not a function\n```\n\n## Reproduction\n\nUse any JSON-LD with an array type:\n\n```json\n{\n  \"@context\": [\"https://www.w3.org/2018/credentials/v1\"],\n  \"@type\": [\"VerifiableCredential\", \"UniversityDegreeCredential\"],\n  ...\n}\n```\n\n## Root Cause\n\nIn `src/index.ts` line 45:\n\n```typescript\nif (node['@type']) {\n  const typeUri = node['@type'].replace('schema:', 'http://schema.org/')\n  targetStore.add(subject, $rdf.sym(RDF_TYPE), $rdf.sym(typeUri))\n}\n```\n\nThis assumes `@type` is a string, but JSON-LD allows arrays.\n\n## Suggested Fix\n\n```typescript\nif (node['@type']) {\n  const types = Array.isArray(node['@type']) ? node['@type'] : [node['@type']]\n  types.forEach(t =\u003e {\n    const typeUri = t.replace('schema:', 'http://schema.org/')\n    targetStore.add(subject, $rdf.sym(RDF_TYPE), $rdf.sym(typeUri))\n  })\n}\n```\n\nThis handles both string and array `@type` values correctly.\n\n## Context\n\nDiscovered while building a W3C Verifiable Credentials demo for jsonos. VCs commonly use type arrays like `[\"VerifiableCredential\", \"UniversityDegreeCredential\"]`.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-06T21:33:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/solid-shim/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f342a10b-0b5e-d4c5-2544-aaa20ffd77b8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDC2C:2EA41:55715B4:6E9442F:697622AC
html-safe-noncecc81a7c54ea30ac417b505c0b2cf12ea19af4aeb3bb7dbe3d10db88743d47cc5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzJDOjJFQTQxOjU1NzE1QjQ6NkU5NDQyRjo2OTc2MjJBQyIsInZpc2l0b3JfaWQiOiIzODEyMzA2ODQ0NTA0MTcxMTgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac646ea1f46578cb9c066cfcd19a35ef26b945ac518c6e81916415aecfe93c6e00
hovercard-subject-tagissue:3786611952
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/JavaScriptSolidServer/solid-shim/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5205160f5514e6557738cf90320173873bd6869b96dbbe89fd9af2c61a6843b7/JavaScriptSolidServer/solid-shim/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5205160f5514e6557738cf90320173873bd6869b96dbbe89fd9af2c61a6843b7/JavaScriptSolidServer/solid-shim/issues/1
og:image:altDescription When JSON-LD uses an array for @type (which is valid per the JSON-LD spec), solid-shim throws a TypeError because it assumes @type is always a string. Error TypeError: i.@type.replace i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
Nonec6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/solid-shim git https://github.com/JavaScriptSolidServer/solid-shim.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id1125206031
octolytics-dimension-repository_nwoJavaScriptSolidServer/solid-shim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1125206031
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/solid-shim
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
release4ea235bfed58ef16c8a5642b3ac64b74f10c9f52
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/solid-shim/issues/1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2Fsolid-shim%2Fissues%2F1
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2Fsolid-shim%2Fissues%2F1
Sign up https://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=JavaScriptSolidServer%2Fsolid-shim
Reloadhttps://github.com/JavaScriptSolidServer/solid-shim/issues/1
Reloadhttps://github.com/JavaScriptSolidServer/solid-shim/issues/1
Reloadhttps://github.com/JavaScriptSolidServer/solid-shim/issues/1
JavaScriptSolidServer https://github.com/JavaScriptSolidServer
solid-shimhttps://github.com/JavaScriptSolidServer/solid-shim
Notifications https://github.com/login?return_to=%2FJavaScriptSolidServer%2Fsolid-shim
Fork 0 https://github.com/login?return_to=%2FJavaScriptSolidServer%2Fsolid-shim
Star 0 https://github.com/login?return_to=%2FJavaScriptSolidServer%2Fsolid-shim
Code https://github.com/JavaScriptSolidServer/solid-shim
Issues 5 https://github.com/JavaScriptSolidServer/solid-shim/issues
Pull requests 0 https://github.com/JavaScriptSolidServer/solid-shim/pulls
Actions https://github.com/JavaScriptSolidServer/solid-shim/actions
Projects 0 https://github.com/JavaScriptSolidServer/solid-shim/projects
Security 0 https://github.com/JavaScriptSolidServer/solid-shim/security
Insights https://github.com/JavaScriptSolidServer/solid-shim/pulse
Code https://github.com/JavaScriptSolidServer/solid-shim
Issues https://github.com/JavaScriptSolidServer/solid-shim/issues
Pull requests https://github.com/JavaScriptSolidServer/solid-shim/pulls
Actions https://github.com/JavaScriptSolidServer/solid-shim/actions
Projects https://github.com/JavaScriptSolidServer/solid-shim/projects
Security https://github.com/JavaScriptSolidServer/solid-shim/security
Insights https://github.com/JavaScriptSolidServer/solid-shim/pulse
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/solid-shim/issues/1
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/solid-shim/issues/1
Bug: @type array causes TypeError in JSON-LD parsinghttps://github.com/JavaScriptSolidServer/solid-shim/issues/1#top
https://github.com/melvincarvalho
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on Jan 6, 2026https://github.com/JavaScriptSolidServer/solid-shim/issues/1#issue-3786611952
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.