Discovery API Response Name Mismatch
Closed this issue · 1 comments
akashsinghal commented
The artifact spec defines the response to the discover API here:
200 OK
Content-Length: <length>
Content-Type: application/json
{
"extensions": [
{
"name": "cncf.oras.referrers",
"url": "https://github.com/oras-project/artifacts-spec/blob/main/manifest-referrers-api.md",
"description": "ORAS referrers listing API",
"endpoints": [
"_oras/artifacts/referrers"
]
}
]
}
The name of the oras extension is defined to be cncf.oras.referres
in the artifact-spec. However, this violates the naming extension defined in the distribution spec for extensions here.
The response to the discover API should be:
200 OK
Content-Length: <length>
Content-Type: application/json
{
"extensions": [
{
"name": "_oras",
"url": "https://github.com/oras-project/artifacts-spec/blob/main/manifest-referrers-api.md",
"description": "ORAS referrers listing API",
"endpoints": [
"_oras/artifacts/referrers"
]
}
]
}
sajayantony commented
+1 Looks like I put in the incorrect value for the name.