You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Mon, May 23, 2016 at 02:18:50PM -0700, Stephen Day wrote:
For now, we just need to make the schema validation is operating
correctly.
That's probably just “test any approach that someone questions”, and
not “test all instances of all approaches”. So @stevvooe wonders
about $ref between files, and we give that one test case. I expect
that will be light enough to be feasible even with pre-1.0 churn.
@philips Looking into a fix but here is what I found:
Type validation seems to work. For example, if you change an int to a string, it is caught.
The regular expression validation seems to be broken. For example, the following passes, when there are not accepted characters:
diff --git a/manifest.md b/manifest.md
index 0b81f1d..1660f12 100644
--- a/manifest.md+++ b/manifest.md@@ -104,7 +104,7 @@ A client will distinguish a manifest list from an image manifest based on the Co
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"size": 7143,
- "digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",+ "digest": "----sha256:e69241---8e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",
"platform": {
"architecture": "ppc64le",
"os": "linux
We may be able to go live with a 1.0 in this condition, but there could be issues.
Those can be tricky. When I was doing the schema for runtime-spec, I had to constantly test passing and failing cases for each field. But that was all by hand.
Activity
[-]Define [/-][+]schema: define "negative" schema examples[/+]vbatts commentedon May 23, 2016
+1 though it could mean some churn until a 1.0
stevvooe commentedon May 23, 2016
We can avoid making a bunch of these till before 1.0. For now, we just need to make the schema validation is operating correctly.
wking commentedon May 23, 2016
On Mon, May 23, 2016 at 02:18:50PM -0700, Stephen Day wrote:
That's probably just “test any approach that someone questions”, and
not “test all instances of all approaches”. So @stevvooe wonders
about $ref between files, and we give that one test case. I expect
that will be light enough to be feasible even with pre-1.0 churn.
wking commentedon May 23, 2016
philips commentedon May 24, 2016
Unless someone volunteers earlier I am making this a post-v1.0.0 milestone.
stevvooe commentedon May 25, 2016
@philips We can't release a 1.0 without ensuring validation is correct.
philips commentedon May 25, 2016
@stevvooe OK, are you volunteering to do that work?
stevvooe commentedon May 25, 2016
@philips Looking into a fix but here is what I found:
Type validation seems to work. For example, if you change an int to a string, it is caught.
The regular expression validation seems to be broken. For example, the following passes, when there are not accepted characters:
We may be able to go live with a 1.0 in this condition, but there could be issues.
vbatts commentedon Jun 1, 2016
Those can be tricky. When I was doing the schema for runtime-spec, I had to constantly test passing and failing cases for each field. But that was all by hand.
schema: add more tests