Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

int64 id value changed while decoding #202

@gadelkareem

Description

@gadelkareem

Using an id of 1616867757123793000, the jsonapi decoded the value into 1616867757123792896. Any idea what's wrong?
ex:

type r struct {
	ID int64 `jsonapi:"primary,r" json:"id"`
}

json

{"id":"1616867757123793000"}

after decode:

1616867757123792896

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions