If only the min or max restriction is specified in the schema plugin generates NPE
@author igor.lovich