opencontainers / image-tools

OCI Image Tooling
https://opencontainers.org
Apache License 2.0
271 stars 82 forks source link

Validation strictness #66

Open wking opened 8 years ago

wking commented 8 years ago

Refs can point to whichever type they like (although they usually point at manifests or manifest lists). How should we handle validation when a ref points at a single layer? Or at a config? Or at an image/png? I see a few interesting settings:

In cases where the user specified none of --unpackable, --strict, or --base, I'd rather warn (but not error) on this sort of thing. And using TAP (as described in #60) gives us a convenient way to warn without erroring.

xiekeyang commented 8 years ago

@wking If manifest, manifest list and single layer are unpackable? I'm not sure, but could you present some use case for that?

wking commented 8 years ago

A use case for unpacking a single layer? Maybe unpacking a manifest is not giving you the results you expect, and you want to step through the layers one by one.