Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'' is a valid value, dont omit on empty #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ type UpdateSiteBody struct {
AgentLevel string `json:"agentLevel,omitempty"`
BlockDurationSeconds int `json:"blockDurationSeconds,omitempty"`
BlockHTTPCode int `json:"blockHTTPCode,omitempty"`
AgentAnonMode string `json:"agentAnonMode,omitempty"`
AgentAnonMode string `json:"agentAnonMode"`
}

// UpdateSite updates a site by name.
Expand Down Expand Up @@ -1827,7 +1827,7 @@ type CreateSiteBody struct {
Name string `json:"name,omitempty"` //Identifying name of the site
DisplayName string `json:"displayName,omitempty"` //Display name of the site
AgentLevel string `json:"agentLevel,omitempty"` //Agent action level - 'block', 'log' or 'off'
AgentAnonMode string `json:"agentAnonMode,omitempty"` //Agent IP anonimization mode - 'EU' or ''
AgentAnonMode string `json:"agentAnonMode"` //Agent IP anonimization mode - 'EU' or ''
BlockHTTPCode int `json:"blockHTTPCode,omitempty"` //HTTP response code to send when when traffic is being blocked
BlockDurationSeconds int `json:"blockDurationSeconds,omitempty"` //Duration to block an IP in seconds
}
Expand Down