Skip to content

validate: add the validation of Resources.devices#374

Merged
Mashimiao merged 2 commits into
opencontainers:masterfrom
zhouhao3:linux-devices
Aug 30, 2017
Merged

validate: add the validation of Resources.devices#374
Mashimiao merged 2 commits into
opencontainers:masterfrom
zhouhao3:linux-devices

Conversation

@zhouhao3

@zhouhao3 zhouhao3 commented Apr 28, 2017

Copy link
Copy Markdown

According to the following spec:

devices.type
devices.access

Signed-off-by: zhouhao zhouhao@cn.fujitsu.com

Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
@liangchenye

Copy link
Copy Markdown
Member

resources.devices.access?

r.Resources.Devices[index].Access))

@wking

wking commented Apr 28, 2017 via email

Copy link
Copy Markdown
Contributor

@Mashimiao

Mashimiao commented May 5, 2017

Copy link
Copy Markdown

LGTM
I think putting type or access value validation here is OK. It's hard to exactly check composition of r, w, m in JSON schema as I tried in runtime-spec/#690 and has been rejected.

Approved with PullApprove

@zhouhao3

zhouhao3 commented May 8, 2017

Copy link
Copy Markdown
Author

@liangchenye @mrunalp PTAL

@wking

wking commented May 8, 2017 via email

Copy link
Copy Markdown
Contributor

@zhouhao3

Copy link
Copy Markdown
Author

ping @liangchenye @mrunalp

@zhouhao3

Copy link
Copy Markdown
Author

@liangchenye @mrunalp PTAL

@liangchenye

Copy link
Copy Markdown
Member

We can drop this kind of validation when the JSON schema validation is adopted in runtime-tools.
Open #453 to track this.

@q384566678 @Mashimiao will you try to integrate that?

@liangchenye

liangchenye commented Aug 30, 2017

Copy link
Copy Markdown
Member

LGTM

Approved with PullApprove

1 similar comment
@Mashimiao

Mashimiao commented Aug 30, 2017

Copy link
Copy Markdown

LGTM

Approved with PullApprove

@Mashimiao Mashimiao merged commit 3767027 into opencontainers:master Aug 30, 2017
@zhouhao3 zhouhao3 deleted the linux-devices branch August 30, 2017 06:32
@zhouhao3

Copy link
Copy Markdown
Author

@liangchenye I will try to do this.

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