distribution/manifest/ocischema
Owen W. Taylor 1d47ef7b80 Check media types when unmarshalling manifests
When unmarshalling manifests from JSON, check that the MediaType field
corresponds to the type that we are unmarshalling as. This makes sure
that when we retrieve a manifest from the manifest store, it will have
the same type as it was handled as before storing it in the manifest
store.

Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
2018-06-19 11:24:25 -04:00
..
builder.go folow commit 9c88801a12 2018-06-18 13:55:24 -05:00
builder_test.go folow commit 9c88801a12 2018-06-18 13:55:24 -05:00
manifest.go Check media types when unmarshalling manifests 2018-06-19 11:24:25 -04:00
manifest_test.go Check media types when unmarshalling manifests 2018-06-19 11:24:25 -04:00