Skip to content

Commit b1b0c26

Browse files
authored
Add mediaType for index (#37)
* add mediatype for index Signed-off-by: Paul Hildebrandt <hildebrandt@b1-systems.de> --------- Signed-off-by: Paul Hildebrandt <hildebrandt@b1-systems.de>
1 parent c61e75e commit b1b0c26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/registry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def NewManifestMetadata(
8181

8282

8383
def NewIndex() -> dict:
84-
return copy.deepcopy(EmptyIndex)
84+
index = copy.deepcopy(EmptyIndex)
85+
index["mediaType"] = "application/vnd.oci.image.index.v1+json"
86+
return index
8587

8688

8789
def create_config_from_dict(conf: dict, annotations: dict) -> Tuple[dict, str]:

0 commit comments

Comments
 (0)