Skip to content

Commit b60ae60

Browse files
committed
schema/testdata: fix spec-example.json.
Fix incorrect sample Spec (hooks as map as opposed to a slice). The JSON Schema validator code misses this and a bunch of other problems since it does not do a DisallowUnknownFields() on its JSON decoder instances. Signed-off-by: Krisztian Litkey <[email protected]>
1 parent c0729c6 commit b60ae60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema/testdata/good/spec-example.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
{"hostPath": "/usr/lib/libVendor.so.0", "containerPath": "/usr/lib/libVendor.so.0"}
2626
],
2727
"hooks": [
28-
{"createContainer": {"path": "/bin/vendor-hook"} },
29-
{"startContainer": {"path": "/usr/bin/ldconfig"} }
28+
{"hookName": "createContainer", "path": "/bin/vendor-hook"},
29+
{"hookName": "startContainer", "path": "/usr/bin/ldconfig"}
3030
]
3131
}
3232
}

0 commit comments

Comments
 (0)