fix json tag (#116)
* remove pointer * fix(models): change created_at to created
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
// Model struct represents an OpenAPI model.
|
// Model struct represents an OpenAPI model.
|
||||||
type Model struct {
|
type Model struct {
|
||||||
CreatedAt int64 `json:"created_at"`
|
CreatedAt int64 `json:"created"`
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Object string `json:"object"`
|
Object string `json:"object"`
|
||||||
OwnedBy string `json:"owned_by"`
|
OwnedBy string `json:"owned_by"`
|
||||||
@@ -18,7 +18,7 @@ type Model struct {
|
|||||||
|
|
||||||
// Permission struct represents an OpenAPI permission.
|
// Permission struct represents an OpenAPI permission.
|
||||||
type Permission struct {
|
type Permission struct {
|
||||||
CreatedAt int64 `json:"created_at"`
|
CreatedAt int64 `json:"created"`
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Object string `json:"object"`
|
Object string `json:"object"`
|
||||||
AllowCreateEngine bool `json:"allow_create_engine"`
|
AllowCreateEngine bool `json:"allow_create_engine"`
|
||||||
|
|||||||
Reference in New Issue
Block a user