apicurio-studio icon indicating copy to clipboard operation
apicurio-studio copied to clipboard

Setting a property attribute to '0' unsets it

Open DyspC opened this issue 2 years ago • 1 comments

Seen on an integer's minimum constraint

image

The field can be set as anything except 0 (then it removes the attribute)

This is probably due to the conditions in this class testing falsiness instead of nullishness

DyspC avatar Apr 20 '22 12:04 DyspC

Crap - good catch. This would be a rare difference between apicurio-data-models when used as a Java library vs. when used as a Javascript library.

EricWittmann avatar May 12 '22 20:05 EricWittmann