Loyal-Young opened a new issue, #6437:
URL: https://github.com/apache/rocketmq-dashboard/issues/6437

   ### What happened
   
   The REST client preserves JSON numbers with UseNumber, but 
output.YAML.restoreNumbers converts literals that do not fit int64 into 
float64. For example 18446744073709551615 and 0.1234567890123456789 lose digits 
in YAML while JSON retains them. Very large finite exponent literals can 
instead become quoted strings.
   
   ### Reproduction
   
   Decode a JSON response with UseNumber containing those values inside an 
object/list and pass it to output.YAML. Inspect the scalar values and numeric 
tags in the emitted YAML.
   
   ### Expected behavior
   
   Preserve the numeric literal and numeric YAML type without first converting 
it to a machine float. Regression coverage should include nested structures, 
integers past signed int64, precise fractional values, and exponent notation.
   
   Prior #5340 fixed integer precision up to signed int64. The existing test 
and #6371 use 9007199254740993, which already fits int64; they do not cover 
this remaining conversion path.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to