Skip to content

Commit

Permalink
Merge pull request #998 from felixlut/context-env-var-json-tags
Browse files Browse the repository at this point in the history
properly populate the EnvironmentVariable struct
  • Loading branch information
JulesFaucherre authored Sep 4, 2023
2 parents 0e349ed + acda77a commit c152c1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
// An EnvironmentVariable has a Variable, a ContextID (its owner), and a
// CreatedAt date.
type EnvironmentVariable struct {
Variable string
ContextID string
CreatedAt time.Time
Variable string `json:"variable"`
ContextID string `json:"context_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}

// A Context is the owner of EnvironmentVariables.
Expand Down

0 comments on commit c152c1b

Please sign in to comment.