APIDevTools / swagger-parser

Swagger 2.0 and OpenAPI 3.0 parser/validator
https://apitools.dev/swagger-parser
MIT License
1.09k stars 154 forks source link

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

Open atuannguyen1101 opened 3 years ago

atuannguyen1101 commented 3 years ago

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?

jaishirole commented 3 years ago

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