DescriptionAdd support to validate list of items in json5 config.
Allow both forms of list validation in JSON5 config:
1. ensure list is exactly as specified (current)
parameters: {
exact_list_param: {
valid_type: "list",
valid_values: [
["a", "b"],
["b", "a"],
],
},
},
2. ensure each item in list is in valid_values (new)
parameters: {
api_method: {
valid_type: "list",
valid_values: ["parseSingleValue", "parseShortHand"],
},
},
BUG=677884
Review-Url: https://codereview.chromium.org/2666173002
Cr-Commit-Position: refs/heads/master@{#447378}
Committed: https://chromium.googlesource.com/chromium/src/+/2028c664f02f529fa688418bc7607800bf7dc521
Patch Set 1 #
Messages
Total messages: 12 (7 generated)
|