-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
We have a number of fields which store arrays of enum string values in JSONB columns. When we get a cache hit, it instead returns this error:
unmarshal field borders: invalid character '\\x00' looking for beginning of value
Ent schema in question:
// in ent/schema/route.go
field.JSON("borders", customfield.Borders{}),
// in customfield/borders.go
type Border string
type Borders []Border
const (
BorderAIR Border = "AIR"
BorderLAND Border = "LAND"
BorderSEA Border = "SEA"
BorderUnknown Border = "UNKNOWN"
)Is there something we need to implement for cache marshalling/unmarshalling into the cache?
kaaanata and hsblhsn
Metadata
Metadata
Assignees
Labels
No labels