<PackageReference Include="NJsonSchema" Version="10.0.5" />

TypeExtensions

public static class TypeExtensions
Provides extension methods for reading contextual type names and descriptions.
public static Task<string> GetDescriptionAsync(this CachedType type, DescriptionAttributeType attributeType = 0)

Gets the description of the given member (based on the DescriptionAttribute, DisplayAttribute or XML Documentation).

public static Task<string> GetDescriptionAsync(this ContextualParameterInfo parameter)

Gets the description of the given member (based on the DescriptionAttribute, DisplayAttribute or XML Documentation).