Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static IOpenApiConfigurationOptions Resolve(Assembly assembly)
{
var type = assembly.GetLoadableTypes()
.SingleOrDefault(p => p.GetInterface("IOpenApiConfigurationOptions", ignoreCase: true).IsNullOrDefault() == false
&& p.IsAbstract == false
&& p.GetCustomAttribute<ObsoleteAttribute>(inherit: false).IsNullOrDefault() == true);
if (type.IsNullOrDefault())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,10 @@ public void Given_Assembly_When_Resolve_Invoked_Then_It_Should_Return_Result()

result.Should().BeOfType<DefaultOpenApiConfigurationOptions>();
}

// NOTE: this abstract class is referenced via the OpenApiConfigurationResolver.Resolve method (and will be ignored)
public abstract class TestOpenApiConfigurationOptionsBase : DefaultOpenApiConfigurationOptions
{
}
}
}