diff --git a/servicenow/client/client_role.go b/servicenow/client/client_role.go index 3ef7654..69d51cf 100644 --- a/servicenow/client/client_role.go +++ b/servicenow/client/client_role.go @@ -10,7 +10,7 @@ const endpointRole = "sys_user_role.do" // Role is the json response for a role in ServiceNow. type Role struct { BaseResult - Name string `json:"name"` + Name string `json:"name,omitempty"` Description string `json:"description"` ElevatedPrivilege bool `json:"elevated_privilege,string"` Suffix string `json:"suffix"` diff --git a/servicenow/client/client_script_include.go b/servicenow/client/client_script_include.go index e4c68e9..720b1cc 100644 --- a/servicenow/client/client_script_include.go +++ b/servicenow/client/client_script_include.go @@ -15,7 +15,7 @@ type ScriptInclude struct { Script string `json:"script"` Active bool `json:"active,string"` Access string `json:"access"` - APIName string `json:"api_name"` + APIName string `json:"api_name,omitempty"` } // ScriptIncludeResults is the object returned by ServiceNow API when saving or retrieving records.