Title: Test-Json cannot parse schema · Issue #12873 · PowerShell/PowerShell · GitHub
Open Graph Title: Test-Json cannot parse schema · Issue #12873 · PowerShell/PowerShell
X Title: Test-Json cannot parse schema · Issue #12873 · PowerShell/PowerShell
Description: It appears that both the JSON data file and schema file are valid. Is there any way to get more information about why the schema cannot be parsed? Steps to reproduce PS C:\src\t\json> Test-Json -Json (Get-Content -Path .\project-manifest...
Open Graph Description: It appears that both the JSON data file and schema file are valid. Is there any way to get more information about why the schema cannot be parsed? Steps to reproduce PS C:\src\t\json> Test-Json -Js...
X Description: It appears that both the JSON data file and schema file are valid. Is there any way to get more information about why the schema cannot be parsed? Steps to reproduce PS C:\src\t\json> Test-Json ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/12873
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test-Json cannot parse schema","articleBody":"It appears that both the JSON data file and schema file are valid.\r\nIs there any way to get more information about why the schema cannot be parsed?\r\n\r\n# Steps to reproduce\r\n```\r\nPS C:\\src\\t\\json\u003e Test-Json -Json (Get-Content -Path .\\project-manifest.json -Raw)\r\nTrue\r\nPS C:\\src\\t\\json\u003e Test-Json -Json (Get-Content -Path .\\project-manifest.schema.json -Raw)\r\nTrue\r\nPS C:\\src\\t\\json\u003e Test-Json -Json (Get-Content -Path .\\project-manifest.json -Raw) -Schema .\\project-manifest.schema.json\r\nTest-Json: Cannot parse the JSON schema.\r\nPS C:\\src\\t\\json\u003e Test-Json -Json (Get-Content -Path .\\project-manifest.json -Raw) -Schema .\\project-manifest.schema.json -Verbose\r\nTest-Json: Cannot parse the JSON schema.\r\n```\r\n# Expected behavior\r\n```\r\nPS C:\\src\\t\\json\u003e Test-Json -Json (Get-Content -Path .\\project-manifest.json -Raw) -Schema .\\project-manifest.schema.json\r\nTrue\r\n```\r\n# Actual behavior\r\n```\r\nPS C:\\src\\t\\json\u003e Test-Json -Json (Get-Content -Path .\\project-manifest.json -Raw) -Schema .\\project-manifest.schema.json\r\nTest-Json: Cannot parse the JSON schema.\r\n```\r\n# Environment data\r\n```\r\nPS C:\\src\\t\\json\u003e $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.0.1\r\nPSEdition Core\r\nGitCommitId 7.0.1\r\nOS Microsoft Windows 10.0.18363\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/Liturgist","@type":"Person","name":"Liturgist"},"datePublished":"2020-06-02T15:21:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/12873/PowerShell/issues/12873"}
| 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:60abad87-8244-8b45-6490-02c9d14d1713 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9684:1E3BF:11AA9E7:17D22EC:6A54502F |
| html-safe-nonce | 5d7ec284373244e5ad0f499f055fe34230abee6f669ab38538b2ee104d8d9ba1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Njg0OjFFM0JGOjExQUE5RTc6MTdEMjJFQzo2QTU0NTAyRiIsInZpc2l0b3JfaWQiOiIxODQ4ODkwMTc0Njc2OTQ2OTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f39080f80168519b6e700dbd6d92c1ac72eb642191a840087491aad8f4f72db1 |
| hovercard-subject-tag | issue:629291381 |
| 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/PowerShell/PowerShell/12873/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b1799d17158dc112864e2259699db0ee3d5cb2a40d8acd5ae6b7d14aa08c610/PowerShell/PowerShell/issues/12873 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b1799d17158dc112864e2259699db0ee3d5cb2a40d8acd5ae6b7d14aa08c610/PowerShell/PowerShell/issues/12873 |
| og:image:alt | It appears that both the JSON data file and schema file are valid. Is there any way to get more information about why the schema cannot be parsed? Steps to reproduce PS C:\src\t\json> Test-Json -Js... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Liturgist |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width