Title: ConvertTo-Json allows Depth value of int.MaxValue but only supports maximum of 100 · Issue #15344 · PowerShell/PowerShell · GitHub
Open Graph Title: ConvertTo-Json allows Depth value of int.MaxValue but only supports maximum of 100 · Issue #15344 · PowerShell/PowerShell
X Title: ConvertTo-Json allows Depth value of int.MaxValue but only supports maximum of 100 · Issue #15344 · PowerShell/PowerShell
Description: See PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs Lines 34 to 43 in a95b2cb ///
Open Graph Description: See PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs Lines 34 to 43 in a95b2cb /// X Description: See PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs Lines 34 to 43 in a95b2cb /// <summary> /// Gets or sets the Depth property. /// &l...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/15344
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ConvertTo-Json allows Depth value of int.MaxValue but only supports maximum of 100","articleBody":"See https://github.com/PowerShell/PowerShell/blob/a95b2cb17fecc8640533420b3baa9aec0f3749cb/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs#L34-L43\r\n\r\n```csharp\r\n /// \u003csummary>\r\n /// Gets or sets the Depth property.\r\n /// \u003c/summary>\r\n [Parameter]\r\n [ValidateRange(0, int.MaxValue)]\r\n public int Depth\r\n {\r\n get { return _depth; }\r\n set { _depth = value; }\r\n }\r\n```\r\n\r\nThe valid range should be 0 to 100, not int.MaxValue.\r\n\r\n## Steps to reproduce\r\n\r\n```powershell\r\nPS C:\\Git> dir | ConvertTo-Json -Depth 1000\r\nConvertTo-Json: The maximum depth allowed for serialization is 100.\r\n```\r\n\r\n## Expected behavior\r\n\r\nThe error should come from parameter validation, not from `BeginProcessing()`.\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.1.3\r\nPSEdition Core\r\nGitCommitId 7.1.3\r\nOS Microsoft Windows 10.0.19043\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/sdwheeler","@type":"Person","name":"sdwheeler"},"datePublished":"2021-05-04T19:52:19Z","url":"https://github.com/PowerShell/PowerShell/issues/15344"}
react-profiling 0 react-import-map react,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-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:40eba49c-da4b-7f36-baec-45601a049ede current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id E83E:27FF00:11310:17B9E:6AFDD51E html-safe-nonce b0b5418d9f629dbc368acbae0db6906ae9b53eda81e00222b31f7e96a5bd0385 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODNFOjI3RkYwMDoxMTMxMDoxN0I5RTo2QUZERDUxRSIsInZpc2l0b3JfaWQiOiIyNjkyMDAwMjEzNDY3MjU2MDk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac e21236cfb0864cd859b6def3351676bee0edbe9f38ace33b1012f1e7e3c88c28 hovercard-subject-tag issue:875782350 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/15344/issue_layout twitter:image https://opengraph.githubassets.com/63cf25ab370826e19adfe7601ee2535229c144699893772d540730953a8ada86/PowerShell/PowerShell/issues/15344 twitter:card summary_large_image og:image https://opengraph.githubassets.com/63cf25ab370826e19adfe7601ee2535229c144699893772d540730953a8ada86/PowerShell/PowerShell/issues/15344 og:image:alt See PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs Lines 34 to 43 in a95b2cb /// og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username sdwheeler hostname github.com expected-hostname github.com None 9918bd4004419458bcd838065ac2a76b76ebd11705d73909fff5ab99e996fa23 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 a231c174493a6a442c0b0544475c918b30128208 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.