swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

Scientific notation for small number when using SwaggerParser.YAML.parse({string})

Open atuannguyen1101 opened this issue 4 years ago • 1 comments

I was trying to use the function SwaggerParser.YAML.parse({string}). Everything works fine but I notice that for a very small number, like 0.00000001, it got replaced with a science notation 1e-8. Is it possible for us to have an option to suppress this behavior?

atuannguyen1101 avatar Aug 03 '21 01:08 atuannguyen1101

@atuannguyen1101 Can you give a sample of the string to understand the issue better?

jaishirole avatar Aug 09 '21 07:08 jaishirole