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:
Tera << 8 2024-12-28 15:26:48 -05:00
parent be92c5a569
commit 201007f7a0
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
2 changed files with 3 additions and 3 deletions

View file

@ -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"`