Merge "text_list attributes could be empty"

This commit is contained in:
Jenkins 2017-03-21 13:36:05 +00:00 committed by Gerrit Code Review
commit 8253c39562
2 changed files with 4 additions and 3 deletions

View File

@ -282,16 +282,16 @@ ALLOWED_VALUES_SCHEMA = {
MULTIPLE_TEXT_FIELDS_SCHEMA = {
'value': {
'type': 'array',
'minItems': 1,
'minItems': 0,
'items': {'type': 'string'},
},
'min': {
'type': 'integer',
'minimum': 1,
'minimum': 0,
},
'max': {
'type': 'integer',
'minimum': 1,
'minimum': 0,
}
}

View File

@ -1305,6 +1305,7 @@
description: "List of upstream DNS servers"
weight: 10
type: "text_list"
min: 0
max: 3
regex:
source: &ipv4_regex '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'