Skip to content

Commit

Permalink
fix: use the right json annotation
Browse files Browse the repository at this point in the history
Fixes these types of warnings:

    struct field tag `json:createdAt` not compatible with reflect.StructTag.Get: bad syntax for struct tag value
  • Loading branch information
zimbatm committed Sep 27, 2021
1 parent 368954d commit f0b0efd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions ovh/types_dbaas_logs_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ import (

type DbaasLogsInput struct {
AllowedNetworks []string `json:"allowedNetworks"`
CreatedAt string `json:createdAt`
CreatedAt string `json:"createdAt"`
Description string `json:"description"`
EngineId string `json:"engineId"`
ExposedPort *string `json:"exposedPort"`
Hostname string `json:hostname`
InputId string `json:inputId`
IsRestartRequired bool `json:isRestartRequired`
Hostname string `json:"hostname"`
InputId string `json:"inputId"`
IsRestartRequired bool `json:"isRestartRequired"`
NbInstance *int64 `json:"nbInstance"`
PublicAddress string `json:publicAddress`
SslCertificate string `json:sslCertificate`
Status string `json:status`
PublicAddress string `json:"publicAddress"`
SslCertificate string `json:"sslCertificate"`
Status string `json:"status"`
StreamId string `json:"streamId"`
Title string `json:"title"`
UpdatedAt string `json:updatedAt`
UpdatedAt string `json:"updatedAt"`
}

func (v DbaasLogsInput) ToMap() map[string]interface{} {
Expand Down
6 changes: 3 additions & 3 deletions ovh/types_me.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type MePaymentMeanBankAccount struct {
Bic string `json:"bic"`
CreationDate string `json:"creationDate"`
DefaultPaymentMean bool `json:"defaultPaymentMean"`
Description *string `json:"description"'`
Description *string `json:"description"`
Iban string `json:"iban"`
Icon *MePaymentMeanIcon `json:"icon"`
Id int64 `json:"id"`
Expand All @@ -86,7 +86,7 @@ type MePaymentMeanBankAccount struct {

type MePaymentMeanCreditCard struct {
DefaultPaymentMean bool `json:"defaultPaymentMean"`
Description *string `json:"description"'`
Description *string `json:"description"`
ExpirationDate string `json:"expirationDate"`
Icon *MePaymentMeanIcon `json:"icon"`
Id int64 `json:"id"`
Expand All @@ -100,7 +100,7 @@ type MePaymentMeanPaypal struct {
AgreementId string `json:"agreementId"`
CreationDate string `json:"creationDate"`
DefaultPaymentMean bool `json:"defaultPaymentMean"`
Description *string `json:"description"'`
Description *string `json:"description"`
Email string `json:"email"`
Icon *MePaymentMeanIcon `json:"icon"`
Id int64 `json:"id"`
Expand Down
2 changes: 1 addition & 1 deletion ovh/types_order_cart_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type OrderCartItemDomainSettings struct {
}

type OrderCartItemConfiguration struct {
Id int64 `json:id`
Id int64 `json:"id"`
Label string `json:"label"`
Value string `json:"value"`
}
Expand Down

0 comments on commit f0b0efd

Please sign in to comment.