add omitempty for optional fields in requests