Skip to content

Commit 73137a7

Browse files
committed
schema/defs-config.json: Require rootfs properties and enumerate type
The property had been (erroneously) "layers"; this commit fixes that by making the property "type" and using an enum to require the value to be "layers". It also adds "required" entries for both rootfs.diff_ids and rootfs.type. Signed-off-by: W. Trevor King <[email protected]>
1 parent 4e31348 commit 73137a7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

schema/defs-config.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,17 @@
7575
"type": "string"
7676
}
7777
},
78-
"layers": {
79-
"type": "string"
78+
"type": {
79+
"type": "string",
80+
"enum": [
81+
"layers"
82+
]
8083
}
81-
}
84+
},
85+
"required": [
86+
"diff_ids",
87+
"type"
88+
]
8289
},
8390
"history": {
8491
"type": "object",

0 commit comments

Comments
 (0)