Add schema for cgmanifest.json (#18036)

* Update cgmanifest.json

* Update findMissingNotices.ps1
This commit is contained in:
Travis Plunk authored and GitHub committed 2022-09-06 12:21:53 -07:00
1 parent 1c13c7084b
commit c17fda415a
2 files changed
+7 -2

No files matched your search

+2 -1
View File
@@ -1430,5 +1430,6 @@
},
"DevelopmentDependency": false
}
]
],
"$schema": "https://json.schemastore.org/component-detection-manifest.json"
}
+5 -1
View File
@@ -275,7 +275,11 @@ foreach ($runtime in "win7-x64", "linux-x64", "osx-x64", "alpine-x64", "win-arm"
$newRegistrations = $registrations.Keys | Sort-Object | ForEach-Object { $registrations[$_] }
$count = $newRegistrations.Count
$newJson = @{Registrations = $newRegistrations } | ConvertTo-Json -depth 99
$newJson = @{
Registrations = $newRegistrations
'$schema' = "https://json.schemastore.org/component-detection-manifest.json"
} | ConvertTo-Json -depth 99
if ($Fix -and $registrationChanged) {
$newJson | Set-Content $cgManifestPath
Set-GWVariable -Name CGMANIFEST_PATH -Value $cgManifestPath