Skip to content

Commit ee85075

Browse files
Merge pull request #666 from meshery/work/silly-babbage
Fix deleted_at JSON serialization: use custom NullTime instead of sql.NullTime
2 parents b31bada + 6e07683 commit ee85075

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

models/v1alpha1/core/core.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schemas/constructs/v1alpha1/core/api.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,12 @@ components:
395395

396396
nullTime:
397397
description: SQL null Timestamp to handle null values of time.
398-
x-go-type: sql.NullTime
398+
x-go-type: meshcore.NullTime
399+
x-go-type-import:
400+
name: meshcore
401+
path: github.com/meshery/schemas/models/core
399402
type: string
403+
format: date-time
400404
x-go-type-skip-optional-pointer: true
401405

402406
styles:

0 commit comments

Comments
 (0)