chore: Make lookup fields in the API omit when they're empty.
This makes the API more accurate to the previous API's responses.
This commit is contained in:
parent
be92c5a569
commit
201007f7a0
2 changed files with 3 additions and 3 deletions
|
@ -27,9 +27,9 @@ type SanitizedBackend struct {
|
|||
Name string `json:"name"`
|
||||
BackendID uint `json:"id"`
|
||||
OwnerID uint `json:"ownerID"`
|
||||
Description *string `json:"description"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
Backend string `json:"backend"`
|
||||
BackendParameters *string `json:"connectionDetails"`
|
||||
BackendParameters *string `json:"connectionDetails,omitempty"`
|
||||
Logs []string `json:"logs"`
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ type ProxyLookupRequest struct {
|
|||
type SanitizedProxy struct {
|
||||
Id uint `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description *string `json:"description"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
Protcol string `json:"protocol"`
|
||||
SourceIP string `json:"sourceIP"`
|
||||
SourcePort uint16 `json:"sourcePort"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue