-
Notifications
You must be signed in to change notification settings - Fork 264
Further exponential notation fix. #581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Further exponential notation fix. #581
Conversation
…ntial notation to the V2 SchemaDeserializer. I also added it to the handling of Maximum and Minimum properties.
@darrelmiller any idea what's causing my pull requests to fail on the OpenApi-CI-Allbranches check? This is the second time. Unfortunately, the check won't let me see the details. |
The tests are failing...
|
…es.Float, but they are fine with NumberStyles.Any. NumberStyles.Any includes the exponential style, so we're good.
Thank you Darrel. I'll blame it on a "senior" moment. Test are passing now. |
@EricWilson-BluePrism I believe your code was right and the tests are wrong. JSON and YAML do not allow commas in integer or floating point values. Yaml does support octal and hexadecimal but JSON doesn't, so we shouldn't. The commas should be removed from the tests and the NumberStyle should go back to being Float. Let me know if you want me to make those change. |
Hi @darrelmiller, I'm happy to make the changes. Do you want me to update the test cases too? Cheers, |
…different cultures. Also reverted the NumberStyles change from Any back to Float.
I've changed the NumberStyles back to Float and removed the commas from the two test cases. Cheers, |
Thank you for this contribution. I'm really hoping we can get the build pipeline sorted so that we can release an update soon. |
I neglected to apply the NumberStyles.Float fix for supporting exponential notation to the V2 SchemaDeserializer. I also added it to the handling of Maximum and Minimum properties in both V2 and V3 SchemaDeserializer's as hey both leverage decimal.Parse().