Skip to content

Commit

Permalink
Change: deprecate bogus AliasName field in EmailForward
Browse files Browse the repository at this point in the history
Also fix deprecation comments to align them with out current API
  • Loading branch information
ggalmazor committed May 17, 2024
1 parent f2e1c7d commit 775ed57
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dnsimple/domains_email_forwards.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import (
type EmailForward struct {
ID int64 `json:"id,omitempty"`
DomainID int64 `json:"domain_id,omitempty"`
// Deprecated: for requests, please use `AliasName` instead; for responses, please use `AliasEmail` instead.
// Deprecated: use `AliasEmail` instead.
From string `json:"from,omitempty"`
// WARNING: This is not set in responses, please use `AliasEmail` instead.
AliasName string `json:"alias_name,omitempty"`
// WARNING: This is not used by requests, please use `AliasName` instead.
// Deprecated: use `AliasEmail` instead.
AliasName string `json:"alias_name,omitempty"`
AliasEmail string `json:"alias_email,omitempty"`
// Deprecated: please use `DestinationEmail` instead.
To string `json:"to,omitempty"`
Expand Down

0 comments on commit 775ed57

Please sign in to comment.