Skip to content

Commit d668221

Browse files
authored
fix json tag (#116)
* remove pointer * fix(models): change created_at to created
1 parent 575c4e4 commit d668221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// Model struct represents an OpenAPI model.
99
type Model struct {
10-
CreatedAt int64 `json:"created_at"`
10+
CreatedAt int64 `json:"created"`
1111
ID string `json:"id"`
1212
Object string `json:"object"`
1313
OwnedBy string `json:"owned_by"`
@@ -18,7 +18,7 @@ type Model struct {
1818

1919
// Permission struct represents an OpenAPI permission.
2020
type Permission struct {
21-
CreatedAt int64 `json:"created_at"`
21+
CreatedAt int64 `json:"created"`
2222
ID string `json:"id"`
2323
Object string `json:"object"`
2424
AllowCreateEngine bool `json:"allow_create_engine"`

0 commit comments

Comments
 (0)