v0.0.284
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m14s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m14s
This commit is contained in:
parent
796f7956b8
commit
b808c5727c
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.283"
|
const GoextVersion = "0.0.284"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2023-10-09T15:17:22+0200"
|
const GoextVersionTimestamp = "2023-10-09T15:22:57+0200"
|
||||||
|
@ -12,6 +12,10 @@ import (
|
|||||||
func CreateGoExtBsonRegistry() *bsoncodec.Registry {
|
func CreateGoExtBsonRegistry() *bsoncodec.Registry {
|
||||||
rb := bsoncodec.NewRegistryBuilder()
|
rb := bsoncodec.NewRegistryBuilder()
|
||||||
|
|
||||||
|
// otherwise we get []primitve.E when unmarshalling into any
|
||||||
|
// which will result in {'key': .., 'value': ...}[] json when json-marshalling
|
||||||
|
rb.RegisterTypeMapEntry(bsontype.EmbeddedDocument, reflect.TypeOf(primitive.M{}))
|
||||||
|
|
||||||
rb.RegisterTypeDecoder(reflect.TypeOf(rfctime.RFC3339Time{}), rfctime.RFC3339Time{})
|
rb.RegisterTypeDecoder(reflect.TypeOf(rfctime.RFC3339Time{}), rfctime.RFC3339Time{})
|
||||||
rb.RegisterTypeDecoder(reflect.TypeOf(&rfctime.RFC3339Time{}), rfctime.RFC3339Time{})
|
rb.RegisterTypeDecoder(reflect.TypeOf(&rfctime.RFC3339Time{}), rfctime.RFC3339Time{})
|
||||||
|
|
||||||
@ -26,9 +30,5 @@ func CreateGoExtBsonRegistry() *bsoncodec.Registry {
|
|||||||
|
|
||||||
bson.PrimitiveCodecs{}.RegisterPrimitiveCodecs(rb)
|
bson.PrimitiveCodecs{}.RegisterPrimitiveCodecs(rb)
|
||||||
|
|
||||||
// otherwise we get []primitve.E when unmarshalling into any
|
|
||||||
// which will result in {'key': .., 'value': ...}[] json when json-marshalling
|
|
||||||
rb.RegisterTypeMapEntry(bsontype.EmbeddedDocument, reflect.TypeOf(primitive.M{}))
|
|
||||||
|
|
||||||
return rb.Build()
|
return rb.Build()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user