Skip to content

Commit

Permalink
Merge pull request #51 from zzzyq/patch-1
Browse files Browse the repository at this point in the history
Update duration type mapping in convert.go
  • Loading branch information
mescanne authored Nov 26, 2024
2 parents 78b6998 + 84a120f commit 0e3ad19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/converter/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
".google.protobuf.BoolValue": "BOOLEAN",
".google.protobuf.StringValue": "STRING",
".google.protobuf.BytesValue": "BYTES",
".google.protobuf.Duration": "STRING",
".google.protobuf.Duration": "INTERVAL",
".google.protobuf.Timestamp": "TIMESTAMP",
}
typeFromFieldType = map[descriptor.FieldDescriptorProto_Type]string{
Expand Down
2 changes: 1 addition & 1 deletion pkg/converter/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func TestWellKnownTypes(t *testing.T) {
{ "name": "bool", "type": "BOOLEAN", "mode": "NULLABLE" },
{ "name": "str", "type": "STRING", "mode": "NULLABLE" },
{ "name": "bytes", "type": "BYTES", "mode": "NULLABLE" },
{ "name": "du", "type": "STRING", "mode": "NULLABLE" },
{ "name": "du", "type": "INTERVAL", "mode": "NULLABLE" },
{ "name": "t", "type": "TIMESTAMP", "mode": "NULLABLE" }
]`,
})
Expand Down

0 comments on commit 0e3ad19

Please sign in to comment.