Skip to content

Commit 066de42

Browse files
authored
Merge pull request #20 from incident-io/rob/fix-schemas-and-timestamps
Fix invalid schemas and timestamp formatting
2 parents e49dd08 + f4cdf98 commit 066de42

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

model/action_v2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (actionV2) Schema() Property {
2323
Types: []string{"string"},
2424
},
2525
"assignee": Optional(UserV1.Schema()),
26-
"completed_at": DateTime.Schema(),
26+
"completed_at": Optional(DateTime.Schema()),
2727
"created_at": DateTime.Schema(),
2828
"updated_at": DateTime.Schema(),
2929
},

model/follow_up_v2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (followUpV2) Schema() Property {
2828
Types: []string{"string", "null"},
2929
},
3030
"external_issue_reference": Optional(ExternalIssueReferenceV2.Schema()),
31-
"completed_at": DateTime.Schema(),
31+
"completed_at": Optional(DateTime.Schema()),
3232
"created_at": DateTime.Schema(),
3333
"updated_at": DateTime.Schema(),
3434
},

model/incident_role_v1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (incidentRoleV1) Schema() Property {
2828
"role_type": {
2929
Types: []string{"string"},
3030
},
31-
"short_form": {
31+
"shortform": {
3232
Types: []string{"string"},
3333
},
3434
"created_at": DateTime.Schema(),

model/incident_role_v2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (incidentRoleV2) Schema() Property {
2929
"role_type": {
3030
Types: []string{"string"},
3131
},
32-
"short_form": {
32+
"shortform": {
3333
Types: []string{"string"},
3434
},
3535
"created_at": DateTime.Schema(),

tap/tap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func Sync(ctx context.Context, logger kitlog.Logger, ol *OutputLogger, cl *clien
3131
return err
3232
}
3333

34-
timeExtracted := time.Now().Format(time.RFC3339)
34+
timeExtracted := time.Now().UTC().Format(time.RFC3339)
3535
logger.Log("msg", "loading records", "time_extracted", timeExtracted)
3636

3737
records, err := stream.GetRecords(ctx, logger, cl)

0 commit comments

Comments
 (0)