Skip to content

Commit

Permalink
Format OciMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Jan 1, 2024
1 parent 50e2627 commit 8895932
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ internal fun createManifest(configDescriptor: OciDescriptor, bundles: List<OciCo
return OciDataDescriptor(MANIFEST_MEDIA_TYPE, data, lastBundle.manifestDescriptorAnnotations)
}

internal fun createIndex(manifestDescriptors: List<Pair<Platform, OciDescriptor>>, component: OciComponent): OciDataDescriptor {
internal fun createIndex(
manifestDescriptors: List<Pair<Platform, OciDescriptor>>,
component: OciComponent,
): OciDataDescriptor {
val data = jsonObject {
// sorted for canonical json: annotations, manifests, mediaType, schemaVersion
addObjectIfNotEmpty("annotations", component.indexAnnotations)
Expand Down

0 comments on commit 8895932

Please sign in to comment.