resource virtual network dhcp_service_enabled
validation isn't quite right
#86
Labels
bug
Something isn't working
dhcp_service_enabled
validation isn't quite right
#86
When
dhcp_service_enabled
istrue
, one or both of these must also betrue
:ipv4_connectivity_enabled
ipv6_connectivity_enabled
This rule was attempted with the following validation:
The problem is that
apstravalidator.AlsoRequiresNOf
only requires that the paths be configured (not null), rather than that they be configured with any particular value.Setting both to
false
will pass validation whiledhcp_service_enabled
istrue
.Perhaps we need a
NOfValidators(n int, ...v validator)
validator which calls the enumerated validators and counts how many of them run without error?In that case we'd pass it the
valueAtMustBeValidator{}
The text was updated successfully, but these errors were encountered: