registry/manifest/schema2
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 context: remove definition of Context 2017-08-11 15:53:31 -07:00
builder_test.go context: remove definition of Context 2017-08-11 15:53:31 -07: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