Skip to content

Commit

Permalink
Tighten return types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel committed Nov 5, 2024
1 parent 54f2e63 commit 1cc3f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public partial class OpenApiTypeResolver
/// contains any items.
/// </summary>
[Pure]
protected Type? ResolveEnum(ResolveOpenApiSchema schema)
protected Enumeration? ResolveEnum(ResolveOpenApiSchema schema)
{
if (ResolveName(schema, ResolveTypeName.Enum) is not { } nameType) return null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _ when schema.Enum.Any() /*.*/ => ResolveEnum(schema),

/// <summary>Resolves the <see cref="Type"/> for <see cref="OpenApiDataType.@object"/>.</summary>
[Pure]
private Type ResolveObject(ResolveOpenApiSchema schema)
private Class ResolveObject(ResolveOpenApiSchema schema)
{
var data = GetTypeData(schema);

Expand Down

0 comments on commit 1cc3f62

Please sign in to comment.