google / google/go-jsonnet

Support to convert int json to value

Open
#671 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.8k
Forks
263
PR merge metrics
No merged PRs in 30d

Description

Hi

I was creating a native function which returns an int64 value and faced following error:
```
RUNTIME ERROR: Not a json type: 1234567890
```

After debugging this further, I found that we do not support converting int64 json to value (https://github.com/google/go-jsonnet/blob/master/interpreter.go#L934). Is there any reason we are not supporting int and int64 values? If not, I am happy to implement it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.