graphql-go / graphql-go/graphql
json.Number is not serialized as Int type
Open
- 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
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