When generating a WebApi with Micrsoft RestClient there are a number of rules to be considered, for example you need to flag all ValueType (like int or System.Guid) as System.ComponentModel.DataAnnotations.RequiredAttribute or else AutoRest will make them System.Nullable<T> in the generated code.
But how do I do this to keep a List<int> a List<int> and not List<int?>? Using [Required]did not help any in this case.