Skip to content

Commit

Permalink
feat(accounts): add provider in response (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas authored Jan 27, 2025
1 parent d6830f1 commit 74373dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/models/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func (a Account) MarshalJSON() ([]byte, error) {
return json.Marshal(&struct {
ID string `json:"id"`
ConnectorID string `json:"connectorID"`
Provider string `json:"provider"`
Reference string `json:"reference"`
CreatedAt time.Time `json:"createdAt"`
Type AccountType `json:"type"`
Expand All @@ -68,6 +69,7 @@ func (a Account) MarshalJSON() ([]byte, error) {
}{
ID: a.ID.String(),
ConnectorID: a.ConnectorID.String(),
Provider: a.ConnectorID.Provider,
Reference: a.Reference,
CreatedAt: a.CreatedAt,
Type: a.Type,
Expand Down
3 changes: 3 additions & 0 deletions openapi/v3/v3-schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ components:
required:
- id
- connectorID
- provider
- reference
- createdAt
- type
Expand All @@ -108,6 +109,8 @@ components:
type: string
connectorID:
type: string
provider:
type: string
reference:
type: string
createdAt:
Expand Down

0 comments on commit 74373dd

Please sign in to comment.