Serilaize with depth (#4960)

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
This commit is contained in:
Azure SDK Bot 2023-09-18 10:43:30 -07:00 committed by GitHub
parent 526143d69d
commit f04b7164eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ function UpdateDocsMsMetadataForPackage($packageInfoJsonLocation) {
Write-Host "The docs metadata json $packageMetadataName does not exist, creating a new one to docs repo..."
New-Item -ItemType Directory -Path $packageInfoLocation -Force
}
$packageInfoJson = ConvertTo-Json $packageInfo
$packageInfoJson = ConvertTo-Json $packageInfo -Depth 100
Set-Content `
-Path $packageInfoLocation/$packageMetadataName `
-Value $packageInfoJson