OpenAPI.NET.CSharpAnnotations
OpenAPI.NET.CSharpAnnotations copied to clipboard
Can't reference nested class or enum in an annotation
A customer has a parameter annotation of the following format:
Where SomeOtherClass is a nested enum or class defined within the class SomeClass, for example:
/// <summary>
/// SomeClass
/// </summary>
public class SomeClass {
/// <summary>
/// SomeOtherClass
/// </summary>
public class SomeOtherClass { SomeOtherClass() {} }
/// <summary>
/// SomeEnum
/// </summary>
public enum SomeEnum {
SomeEnumProperty
}
}
When generating the document, generation will fail with an 'UnableToGenerateAllOperationsExcepion', with ExceptionType: TypeLoadException and message: Type "SomeNamespace.SomeClass.SomeOtherClas" could not be found. Ensure that it exists in one of the following assemblies: SomeNamespace.dll.
Same here