graphql-go / graphql-go/graphql

json.Number is not serialized as Int type

Open
#647 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

It will be very convinient to use json.Number when buillding the response, right now it is not possible,
as Int serializer does not encount it.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Int serializer and checking how Go's json.Number is represented and validated. Confirm the expected GraphQL response behavior, then add or update coverage showing that json.Number is accepted and serialized as an Int.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.