Skip to content

validate.go: add autodetect#481

Closed
zhouhao3 wants to merge 1 commit into
opencontainers:masterfrom
zhouhao3:auto-test
Closed

validate.go: add autodetect#481
zhouhao3 wants to merge 1 commit into
opencontainers:masterfrom
zhouhao3:auto-test

Conversation

@zhouhao3
Copy link
Copy Markdown

@zhouhao3 zhouhao3 commented Dec 7, 2016

Move JSON from image-tool: autodect to image-spec,
complete opencontainers/image-tools#62 .
Signed-off-by: zhouhao zhouhao@cn.fujitsu.com

@vbatts
Copy link
Copy Markdown
Member

vbatts commented Dec 7, 2016

make test and make lint are failing for this

Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
@zhouhao3
Copy link
Copy Markdown
Author

zhouhao3 commented Dec 8, 2016

make test and make lint are failing for this

updated

@zhouhao3
Copy link
Copy Markdown
Author

@xiekeyang @stevvooe

Copy link
Copy Markdown
Contributor

@philips philips left a 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?

Comment thread schema/validator.go
}

// Autodect detects the validation type
func Autodect(f io.ReadSeeker) (string, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Autodetect?

Copy link
Copy Markdown
Author

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.

Copy link
Copy Markdown
Author

@zhouhao3 zhouhao3 Jan 19, 2017

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 .

@stevvooe
Copy link
Copy Markdown
Contributor

Also, this will cause problems once a solution to #494 lands.

@stevvooe
Copy link
Copy Markdown
Contributor

#494 has been merged so this is getting closed.

@stevvooe stevvooe closed this Jan 20, 2017
@zhouhao3 zhouhao3 deleted the auto-test branch February 6, 2017 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants