Skip to content

Not working with Int64 array? #35

@lephyrius

Description

@lephyrius

I have a model that looks like this:

struct Game: PostgreSQLModel, Codable {
var id: Int?
var tags: [Int64]?
}

I want to store an array of int64 tags in the model the case where there is multiple ints in the array works but also if the array is nil (empty) works.
But the case where it only contains a single value gives me:
DecodingError.typeMismatch: Value of type 'Int64' required for key ''.
But only on linux.
Using swift 4.1 + PostgreSQL 10 .

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions