[FEATURE] Make object setters nullable if minitems allows it

Change-Id: Ieb789fc59831b545568c8ff21a9102d948c49c5d