Skip to content

Commit ea945d2

Browse files
committed
Make sample JSON more readable
1 parent def8809 commit ea945d2

1 file changed

Lines changed: 22 additions & 21 deletions

File tree

src/code/ContainerRegistryServerAPICalls.cs

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -706,27 +706,28 @@ internal Hashtable GetContainerRegistryMetadata(string packageName, string exact
706706
return requiredVersionResponse;
707707
}
708708

709-
/* Response returned looks something like:
710-
* {
711-
* "schemaVersion": 2,
712-
* "config": {
713-
* "mediaType": "application/vnd.unknown.config.v1+json",
714-
* "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
715-
* "size": 0
716-
* },
717-
* "layers": [
718-
* {
719-
* "mediaType": "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip'",
720-
* "digest": "sha256:7c55c7b66cb075628660d8249cc4866f16e34741c246a42ed97fb23ccd4ea956",
721-
* "size": 3533,
722-
* "annotations": {
723-
* "org.opencontainers.image.title": "test_module.1.0.0.nupkg",
724-
* "metadata": "{\"GUID\":\"45219bf4-10a4-4242-92d6-9bfcf79878fd\",\"FunctionsToExport\":[],\"CompanyName\":\"Anam\",\"CmdletsToExport\":[],\"VariablesToExport\":\"*\",\"Author\":\"Anam Navied\",\"ModuleVersion\":\"1.0.0\",\"Copyright\":\"(c) Anam Navied. All rights reserved.\",\"PrivateData\":{\"PSData\":{\"Tags\":[\"Test\",\"CommandsAndResource\",\"Tag2\"]}},\"RequiredModules\":[],\"Description\":\"This is a test module, for PSGallery team internal testing. Do not take a dependency on this package. This version contains tags for the package.\",\"AliasesToExport\":[]}"
725-
* }
726-
* }
727-
* ]
728-
* }
729-
*/
709+
/*
710+
Response returned looks something like:
711+
{
712+
"schemaVersion": 2,
713+
"config": {
714+
"mediaType": "application/vnd.unknown.config.v1+json",
715+
"digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
716+
"size": 0
717+
},
718+
"layers": [
719+
{
720+
"mediaType": "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip'",
721+
"digest": "sha256:7c55c7b66cb075628660d8249cc4866f16e34741c246a42ed97fb23ccd4ea956",
722+
"size": 3533,
723+
"annotations": {
724+
"org.opencontainers.image.title": "test_module.1.0.0.nupkg",
725+
"metadata": "{\"GUID\":\"45219bf4-10a4-4242-92d6-9bfcf79878fd\",\"FunctionsToExport\":[],\"CompanyName\":\"Anam\",\"CmdletsToExport\":[],\"VariablesToExport\":\"*\",\"Author\":\"Anam Navied\",\"ModuleVersion\":\"1.0.0\",\"Copyright\":\"(c) Anam Navied. All rights reserved.\",\"PrivateData\":{\"PSData\":{\"Tags\":[\"Test\",\"CommandsAndResource\",\"Tag2\"]}},\"RequiredModules\":[],\"Description\":\"This is a test module, for PSGallery team internal testing. Do not take a dependency on this package. This version contains tags for the package.\",\"AliasesToExport\":[]}"
726+
}
727+
}
728+
]
729+
}
730+
*/
730731

731732
ContainerRegistryInfo serverPkgInfo = GetMetadataProperty(foundTags, packageName, out errRecord);
732733
if (errRecord != null)

0 commit comments

Comments
 (0)