Fix for non-nullable bool - it should not relay on required attribute but on assert one because its value is never null.