public SwaggerType GetSwaggerType(Type type)
 {
     var primitiveType = Nullable.GetUnderlyingType(type);
     if (primitiveType != null)
     {
         var primitiveProvider = new PrimitiveTypeProvider();
         return primitiveProvider.GetSwaggerType(primitiveType);
     }
     return null;
 }
Exemplo n.º 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);
        }