Web UI cannot handle numbers larger than Number.MAX_SAFE_INTEGER
in JSON files
#857
Labels
Milestone
Number.MAX_SAFE_INTEGER
in JSON files
#857
If I try to create a JSON file, where a field has the value
9223372036854775807
(Long.MAX_VALUE
), the UI displays it as9223372036854776000
.Editing the file to replace this value with the original number displays the error
You did not change anything
when trying to save it. If I try to update the value withLong.MAX_VALUE - 1
, the value is updated correctly (verified by looking at the API response), but the UI still displays9223372036854776000
.It seems like this is caused by the value using JavaScript's
Number
instead ofBigInt
. I'm not sure this is a problem with the Central Dogma UI or some library it's using.You can reproduce it by creating a file with the following contents:
YAML files are unaffected:
The text was updated successfully, but these errors were encountered: