mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
make alias omitempty
This commit is contained in:
parent
6f3335d3ad
commit
7de307285e
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
)
|
||||
|
||||
type Interface struct {
|
||||
Alias string `json:"alias" validate:"min=0,max=3"`
|
||||
Alias string `json:"alias,omitempty" validate:"min=0,max=3"`
|
||||
Type InterfaceType `json:"type" validate:"min=0,max=3"`
|
||||
AddressingMode InterfaceAddressingMode `json:"addressing_mode" validate:"min=0,max=2"`
|
||||
Address *IPNet `json:"address,omitempty" validate:"excluded_unless=AddressingMode 1"`
|
||||
|
|
Loading…
Add table
Reference in a new issue