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

Assertion with 0 is impossible as numeric #279

Closed
ntiss opened this Issue Aug 9, 2018 · 1 comment

Comments

Projects
None yet
4 participants
@ntiss
Copy link

ntiss commented Aug 9, 2018

It's impossible to have an assertion testing the numeric value of 0 :
image

The number 0 is considered as a string in the code, it's surrounded by quotes :
image

I tried to put 0.0 in the UI without any success. Stoplight always adds quotes in the code.

(And of course, the assertion fails at runtime when it compares 0 to "0")

@casserni casserni added bug Next labels Aug 9, 2018

@casserni casserni self-assigned this Aug 9, 2018

@casserni casserni added the done label Aug 9, 2018

@casserni

This comment has been minimized.

Copy link
Member

casserni commented Aug 9, 2018

Good find, will go out soon!

@lottamus lottamus closed this Oct 15, 2018

@marbemac marbemac removed the done label Oct 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment