public SwaggerType GetSwaggerType(Type type)
 {
     var primitiveType = Nullable.GetUnderlyingType(type);
     if (primitiveType != null)
     {
         var primitiveProvider = new PrimitiveTypeProvider();
         return primitiveProvider.GetSwaggerType(primitiveType);
     }
     return null;
 }
Beispiel #2
0
        public SwaggerType GetSwaggerType(Type type)
        {
            var primitiveType = Nullable.GetUnderlyingType(type);

            if (primitiveType != null)
            {
                var primitiveProvider = new PrimitiveTypeProvider();
                return(primitiveProvider.GetSwaggerType(primitiveType));
            }
            return(null);
        }