Fix optional/required inversion in schema.