Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Fix omit empty computed attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegron committed Dec 28, 2018
1 parent 36b495b commit f8b0796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion servicenow/client/client_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion servicenow/client/client_script_include.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f8b0796

Please sign in to comment.