Add required flags to annotations for required parameters.