René's URL Explorer Experiment


Title: `Test-Json` fails with UnresolvedJsonSchemaRef when "$schema" is http://json-schema.org/schema (regression in 7.6.7, 7.5.12, 7.4.21) · Issue #28245 · PowerShell/PowerShell · GitHub

Open Graph Title: `Test-Json` fails with UnresolvedJsonSchemaRef when "$schema" is http://json-schema.org/schema (regression in 7.6.7, 7.5.12, 7.4.21) · Issue #28245 · PowerShell/PowerShell

X Title: `Test-Json` fails with UnresolvedJsonSchemaRef when "$schema" is http://json-schema.org/schema (regression in 7.6.7, 7.5.12, 7.4.21) · Issue #28245 · PowerShell/PowerShell

Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...

Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/28245

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Test-Json` fails with UnresolvedJsonSchemaRef when \"$schema\" is http://json-schema.org/schema (regression in 7.6.7, 7.5.12, 7.4.21)","articleBody":"### Prerequisites\n\n- [x] Write a descriptive title.\n- [x] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [x] Search the existing issues.\n- [x] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [x] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nSince 7.6.7, 7.5.12 and 7.4.21, `Test-Json` can't use a schema whose `$schema` keyword is `http://json-schema.org/schema`. It writes `UnresolvedJsonSchemaRef` and returns `False` for any input, valid or not. With `-ErrorAction SilentlyContinue`, that `False` comes back with no output at all. Up to 7.6.6, 7.5.11 and 7.4.20 it validated the input normally.\n\n```powershell\n# A concrete metaschema URI works in every version\nTest-Json -Json '{}' -Schema '{ \"$schema\": \"https://json-schema.org/draft/2020-12/schema\", \"type\": \"object\" }'\n\n# The http://json-schema.org/schema URI at the top level\nTest-Json -Json '{}' -Schema '{ \"$schema\": \"http://json-schema.org/schema\", \"type\": \"object\" }'\n\n# The same URI in a nested subschema, even though the input doesn't contain \"a\"\nTest-Json -Json '{}' -Schema '{ \"type\": \"object\", \"properties\": { \"a\": { \"$schema\": \"http://json-schema.org/schema\" } } }'\n```\n\n`-SchemaFile` behaves the same as `-Schema`.\n\nNotes:\n\n- The schemas contain no `$ref`. `Get-Error` shows the failure happens while resolving the `$schema` dialect (`Json.Schema.SchemaRegistry.SetDialect`), so the message about external references is misleading here.\n- Any `$schema` value other than the exact draft-06, draft-07, 2019-09 and 2020-12 metaschema URIs fails the same way. That includes common variants such as `https://json-schema.org/schema` and the http spelling of the 2020-12 URI, `http://json-schema.org/draft/2020-12/schema`. All of them work on 7.6.6.\n- Passing `-FetchExternalReference` restores the old result (last command under \"Actual behavior\"), because the metaschema is then downloaded again. Earlier versions apparently did that download implicitly.\n- None of the release notes for v7.6.7, v7.5.12 and v7.4.21 mentions this change.\n\nCould any of these be considered?\n\n1. Make the error say that the `$schema` metaschema could not be resolved, rather than referring to external references.\n2. Mention the change as a breaking change in the release notes.\n3. Resolve the json-schema.org metaschema URIs, including `http://json-schema.org/schema`, without a network fetch.\n\nRelated: #28205 (and #28214, closed as its duplicate), and #28218 (a separate 7.6.7 `Test-Json` regression from the same servicing change).\n\n### Expected behavior\n\n```console\nPS> Test-Json -Json '{}' -Schema '{ \"$schema\": \"https://json-schema.org/draft/2020-12/schema\", \"type\": \"object\" }'\nTrue\nPS> Test-Json -Json '{}' -Schema '{ \"$schema\": \"http://json-schema.org/schema\", \"type\": \"object\" }'\nTrue\nPS> Test-Json -Json '{}' -Schema '{ \"type\": \"object\", \"properties\": { \"a\": { \"$schema\": \"http://json-schema.org/schema\" } } }'\nTrue\n```\n\n### Actual behavior\n\n```console\nPS> Test-Json -Json '{}' -Schema '{ \"$schema\": \"https://json-schema.org/draft/2020-12/schema\", \"type\": \"object\" }'\nTrue\nPS> Test-Json -Json '{}' -Schema '{ \"$schema\": \"http://json-schema.org/schema\", \"type\": \"object\" }'\nTest-Json: The JSON schema contains a reference that could not be resolved. External schema references are not supported by default, use the 'FetchExternalReference' parameter to enable it.\nFalse\nPS> Test-Json -Json '{}' -Schema '{ \"type\": \"object\", \"properties\": { \"a\": { \"$schema\": \"http://json-schema.org/schema\" } } }'\nTest-Json: The JSON schema contains a reference that could not be resolved. External schema references are not supported by default, use the 'FetchExternalReference' parameter to enable it.\nFalse\nPS> Test-Json -Json '{}' -Schema '{ \"$schema\": \"http://json-schema.org/schema\", \"type\": \"object\" }' -FetchExternalReference\nTrue\n```\n\n### Error details\n\n```console\nPS> Get-Error\n\nException             :\n    Type           : System.Exception\n    Message        : The JSON schema contains a reference that could not be resolved. External schema references are not supported by default, use the 'FetchExternalReference' parameter to enable it.\n    InnerException :\n        Type       : Json.Schema.RefResolutionException\n        BaseUri    : http://json-schema.org/schema\n        TargetSite :\n            Name          : SetDialect\n            DeclaringType : [Json.Schema.SchemaRegistry]\n            MemberType    : Method\n            Module        : JsonSchema.Net.dll\n        Message    : Could not resolve 'http://json-schema.org/schema'\n        Source     : JsonSchema.Net\n        HResult    : -2146233088\n        StackTrace :\n   at Json.Schema.SchemaRegistry.SetDialect(JsonSchema schema, Vocabulary[] parentDialect)\n   at Json.Schema.SchemaRegistry.Scan(Uri baseUri, JsonSchema document)\n   at Json.Schema.SchemaRegistry.RegisterSchema(Uri uri, IBaseDocument document)\n   at Json.Schema.JsonSchema.Evaluate(JsonNode root, EvaluationOptions options)\n   at Microsoft.PowerShell.Commands.TestJsonCommand.ProcessRecord()\n    HResult        : -2146233088\nTargetObject          : Json.Schema.JsonSchema\nCategoryInfo          : InvalidData: (Json.Schema.JsonSchema:JsonSchema) [Test-Json], Exception\nFullyQualifiedErrorId : UnresolvedJsonSchemaRef,Microsoft.PowerShell.Commands.TestJsonCommand\nInvocationInfo        :\n    MyCommand        : Test-Json\n    ScriptLineNumber : 1\n    OffsetInLine     : 1\n    HistoryId        : 1\n    Line             : Test-Json -Json '{}' -Schema '{ \"$schema\": \"http://json-schema.org/schema\", \"type\": \"object\" }'\n    Statement        : Test-Json -Json '{}' -Schema '{ \"$schema\": \"http://json-schema.org/schema\", \"type\": \"object\" }'\n    PositionMessage  : At line:1 char:1\n                       + Test-Json -Json '{}' -Schema '{ \"$schema\": \"http://json-schema.org/sc …\n                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n    InvocationName   : Test-Json\n    CommandOrigin    : Internal\nScriptStackTrace      : at \u003cScriptBlock>, \u003cNo file>: line 1\nPipelineIterationInfo :\n      0\n      1\n```\n\n### Environment data\n\n```powershell\nName                           Value\n----                           -----\nPSVersion                      7.6.7\nPSEdition                      Core\nGitCommitId                    7.6.7\nOS                             Ubuntu 24.04.2 LTS\nPlatform                       Unix\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion      2.4\nSerializationVersion           1.1.0.1\nWSManStackVersion              3.0\n```\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/Agger1995","@type":"Person","name":"Agger1995"},"datePublished":"2026-10-21T08:58:25Z","url":"https://github.com/PowerShell/PowerShell/issues/28245"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b9d53d2f-72be-3c04-4ef7-4fe3942b89d0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD8AE:3B1EC4:45F80D:5C94D2:6AFCEA7A
html-safe-nonce411da5f10d03b3393b19fd2f72d7173b63cc4af2d0c2fcd4c916664cf0db009d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEFFOjNCMUVDNDo0NUY4MEQ6NUM5NEQyOjZBRkNFQTdBIiwidmlzaXRvcl9pZCI6Ijc1NzA0NzU2NjMxNTMyMjg0MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca349c6ba8342043029725807794d1c7ce7783b98bdbeb599f7f350733cbab8fa
hovercard-subject-tagissue:5957489029
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/PowerShell/PowerShell/28245/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0ee330bdc4163edf6d5bff98901e4846126e627e9f1f46e01ddf9a2ee37707f8/PowerShell/PowerShell/issues/28245
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0ee330bdc4163edf6d5bff98901e4846126e627e9f1f46e01ddf9a2ee37707f8/PowerShell/PowerShell/issues/28245
og:image:altPrerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAgger1995
hostnamegithub.com
expected-hostnamegithub.com
None99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
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
releaseecfd63ca125ec74b42f74eeb158b3fa081c8c497
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/28245#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F28245
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F28245
Sign uphttps://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=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/28245
Reloadhttps://github.com/PowerShell/PowerShell/issues/28245
Reloadhttps://github.com/PowerShell/PowerShell/issues/28245
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests364 (364)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/28245
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/28245
Test-Json fails with UnresolvedJsonSchemaRef when "$schema" is http://json-schema.org/schema (regression in 7.6.7, 7.5.12, 7.4.21)https://github.com/PowerShell/PowerShell/issues/28245#top
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
https://github.com/Agger1995
Agger (Agger1995)https://github.com/Agger1995
on Oct 21, 2026https://github.com/PowerShell/PowerShell/issues/28245#issue-5957489029
latest released versionhttps://github.com/PowerShell/PowerShell/releases
FAQhttps://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md
Differences between Windows PowerShell 5.1 and PowerShellhttps://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
#28205https://github.com/PowerShell/PowerShell/pull/28205
#28214https://github.com/PowerShell/PowerShell/pull/28214
#28218https://github.com/PowerShell/PowerShell/issues/28218
Agger (Agger1995)https://github.com/Agger1995
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Oct 21, 2026https://github.com/PowerShell/PowerShell/issues/28245#event-33828064130
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Oct 22, 2026https://github.com/PowerShell/PowerShell/issues/28245#issuecomment-6341119035
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Oct 28, 2026https://github.com/PowerShell/PowerShell/issues/28245#issuecomment-6479415618
#28273https://github.com/PowerShell/PowerShell/pull/28273
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 28, 2026https://github.com/PowerShell/PowerShell/issues/28245#event-34515754646
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
on Oct 28, 2026https://github.com/PowerShell/PowerShell/issues/28245#event-34515764275
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Oct 28, 2026https://github.com/PowerShell/PowerShell/issues/28245#event-34515793591
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/28245
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/28245
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%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.