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);
 }
示例#2
0
 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;
 }