Skip to content

Commit

Permalink
fix: make valid from and valid to not to have default values (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmuhia committed May 27, 2024
1 parent 809ea85 commit 2fb3566
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ type ProfileIdentifierInput struct {
IdentifierType IdentifierType `json:"identifier_type"`
IdentifierValue string `json:"identifier_value"`
Verified bool `json:"verified"`
ValidFrom time.Time `json:"valid_from,omitempty"`
ValidTo time.Time `json:"valid_to,omitempty"`
ValidFrom *time.Time `json:"valid_from,omitempty"`
ValidTo *time.Time `json:"valid_to,omitempty"`
}

// ProfileContanctInput is used to create profile(s) contact(s)
type ProfileContactInput struct {
ContactType ContactType `json:"contact_type"`
ContactValue string `json:"contact_value"`
Verified bool `json:"verified"`
ValidFrom time.Time `json:"valid_from,omitempty"`
ValidTo time.Time `json:"valid_to,omitempty"`
ValidFrom *time.Time `json:"valid_from,omitempty"`
ValidTo *time.Time `json:"valid_to,omitempty"`
}

0 comments on commit 2fb3566

Please sign in to comment.