Skip to content

Comments

chore: omitempty standard change template#220

Open
susanpann wants to merge 1 commit intomainfrom
susan/serviceNow
Open

chore: omitempty standard change template#220
susanpann wants to merge 1 commit intomainfrom
susan/serviceNow

Conversation

@susanpann
Copy link
Contributor

IsStateAutomaticallyTransitioned bool
StandardChangeTemplateName string
IsStateAutomaticallyTransitioned bool `json:"AutomaticStateTransition"`
StandardChangeTemplateName string `json:"StandardChangeTemplateName,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you describe how this relates to the issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if it's a required change, but I thought to add the omitempty to mimic what the UI does when sending the request. ie. If the standard template name isn't provided it leaves that field out of the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants