mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Remove Broken Validation
This commit is contained in:
parent
adc55135d6
commit
6f3335d3ad
1 changed files with 3 additions and 3 deletions
|
@ -11,10 +11,10 @@ type Interface struct {
|
|||
Address *IPNet `json:"address,omitempty" validate:"excluded_unless=AddressingMode 1"`
|
||||
HardwareInterface *string `json:"hardware_interface,omitempty"`
|
||||
// TODO fix Validator for int pointers with min=0,max=4094
|
||||
VlanID *uint `json:"vlan_id,omitempty" validate:"excluded_unless=Type 1"`
|
||||
VlanID *uint `json:"vlan_id,omitempty"`
|
||||
VlanParent *string `json:"vlan_parent,omitempty"`
|
||||
BondMembers *[]string `json:"bond_members,omitempty" validate:"excluded_unless=Type 2"`
|
||||
BridgeMembers *[]string `json:"bridge_members,omitempty" validate:"excluded_unless=Type 3"`
|
||||
BondMembers *[]string `json:"bond_members,omitempty"`
|
||||
BridgeMembers *[]string `json:"bridge_members,omitempty"`
|
||||
Comment string `json:"comment,omitempty"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue