reinert / JJSchema

A generator from Java Types to JSON-Schema using Jackson.
Other
117 stars 56 forks source link

Could you please change the minimum data range so that could be less than -1 #86

Closed BeFabulousJia12 closed 6 years ago

BeFabulousJia12 commented 6 years ago

In JJSchemaUtil.java file, please change the data range condition for attributes.minimum() to make it possible be less than -1. Sometimes, we need set the minimum value e.g. -10, which is less than -1. ··· if (attributes.minimum() > -1) { node.put("minimum", attributes.minimum()); } ···

reinert commented 6 years ago

Sure, I'll set Integer.MIN_VALUE

reinert commented 6 years ago

Solved in https://github.com/reinert/JJSchema/commit/1a25434f8f50161f7aef53b8bc1e1da6ff988f5d.

New version released.