richie5um / vscode-sort-json

VSCode Extension to Sort JSON objects
https://marketplace.visualstudio.com/items?itemName=richie5um2.vscode-sort-json
MIT License
110 stars 19 forks source link

floats are converted to ints #88

Open deimosfr opened 5 months ago

deimosfr commented 5 months ago

Hi,

I know this has already been opened in the past. but this is a really annoying issue.

After digging into JSON schema, it looks like floats are accepted as numbers.

You can see examples like Google Cloud (so it's not an isolated case): https://cloud.google.com/vpc/docs/using-flow-logs?authuser=1&hl=en#api

SAMPLING_RATE is the flow sampling rate. Flow sampling can be set from 0.0 (no sampling) to 1.0 (all logs). Default is .0.5.

Can you please reconsider managing floats in this plugin?

Thanks in advance and thanks for your plugin