You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue occurs while opening the swagger webpage, on this line in DefinitionsBuilder.cs : DescriptionAttribute[] array = (DescriptionAttribute[])value.GetType().GetField(value.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), inherit: false);
the value is System.Reflection.TypeAttributes.Public, and System.Reflection.TypeAttributes.Public.GetType().GetField(System.Reflection.TypeAttributes.Public.ToString()) returns null, so GetCustomAttributes raises this exception.
The text was updated successfully, but these errors were encountered:
yefka
added a commit
to yefka/swaggerwcf
that referenced
this issue
Sep 24, 2020
Hi, I got an issue with
The issue occurs while opening the swagger webpage, on this line in DefinitionsBuilder.cs :
DescriptionAttribute[] array = (DescriptionAttribute[])value.GetType().GetField(value.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), inherit: false);
the value is System.Reflection.TypeAttributes.Public, and System.Reflection.TypeAttributes.Public.GetType().GetField(System.Reflection.TypeAttributes.Public.ToString()) returns null, so GetCustomAttributes raises this exception.
The text was updated successfully, but these errors were encountered: