@@ -31,6 +31,7 @@ func TestImageIndex(t *testing.T) {
3131 imageIndex : `
3232{
3333 "schemaVersion": 2,
34+ "mediaType": "application/vnd.oci.image.index.v1+json",
3435 "manifests": [
3536 {
3637 "mediaType": "invalid",
@@ -52,6 +53,7 @@ func TestImageIndex(t *testing.T) {
5253 imageIndex : `
5354{
5455 "schemaVersion": 2,
56+ "mediaType": "application/vnd.oci.image.index.v1+json",
5557 "manifests": [
5658 {
5759 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -73,6 +75,7 @@ func TestImageIndex(t *testing.T) {
7375 imageIndex : `
7476{
7577 "schemaVersion": 2,
78+ "mediaType": "application/vnd.oci.image.index.v1+json",
7679 "manifests": [
7780 {
7881 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -93,6 +96,7 @@ func TestImageIndex(t *testing.T) {
9396 imageIndex : `
9497{
9598 "schemaVersion": 2,
99+ "mediaType": "application/vnd.oci.image.index.v1+json",
96100 "manifests": [
97101 {
98102 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -113,6 +117,7 @@ func TestImageIndex(t *testing.T) {
113117 imageIndex : `
114118{
115119 "schemaVersion": 2,
120+ "mediaType": "application/vnd.oci.image.index.v1+json",
116121 "manifests": [
117122 {
118123 "mediaType": "invalid",
@@ -134,6 +139,7 @@ func TestImageIndex(t *testing.T) {
134139 imageIndex : `
135140{
136141 "schemaVersion": 2,
142+ "mediaType": "application/vnd.oci.image.index.v1+json",
137143 "manifests": [
138144 {
139145 "mediaType": "",
@@ -155,6 +161,7 @@ func TestImageIndex(t *testing.T) {
155161 imageIndex : `
156162{
157163 "schemaVersion": 2,
164+ "mediaType": "application/vnd.oci.image.index.v1+json",
158165 "manifests": [
159166 {
160167 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -189,6 +196,7 @@ func TestImageIndex(t *testing.T) {
189196 imageIndex : `
190197{
191198 "schemaVersion": 2,
199+ "mediaType": "application/vnd.oci.image.index.v1+json",
192200 "manifests": [
193201 {
194202 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -206,6 +214,7 @@ func TestImageIndex(t *testing.T) {
206214 imageIndex : `
207215{
208216 "schemaVersion": 2,
217+ "mediaType": "application/vnd.oci.image.index.v1+json",
209218 "manifests": [
210219 {
211220 "mediaType": "application/customized.manifest+json",
0 commit comments