-
Notifications
You must be signed in to change notification settings - Fork 801
validate.go: add autodetect #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f55c888 to
a630600
Compare
|
|
Signed-off-by: zhouhao <[email protected]>
updated |
philips
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the use case for this?
| } | ||
|
|
||
| // Autodect detects the validation type | ||
| func Autodect(f io.ReadSeeker) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Autodetect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the image-tools Autodetect function here because I wanted to put the JSON validation in the iamge-spec repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In opencontainers/image-tools#62 more detailed discussion .
|
Also, this will cause problems once a solution to #494 lands. |
|
#494 has been merged so this is getting closed. |
Move JSON from image-tool: autodect to image-spec,
complete opencontainers/image-tools#62 .
Signed-off-by: zhouhao [email protected]