Add isRequired key to indicate whether a field is required