private static ParameterAllowableValues GetAllowableValue(SwaggerAllowableValuesAttribute attr) { if (attr != null) { return(new ParameterAllowableValues() { ValueType = attr.Type, Values = attr.Values, Max = attr.Max, Min = attr.Min }); } return(null); }
private static ParameterAllowableValues GetAllowableValue(SwaggerAllowableValuesAttribute attr) { if (attr != null) { return new ParameterAllowableValues() { ValueType = attr.Type, Values = attr.Values, Max = attr.Max, Min = attr.Min }; } return null; }