Skip to content

Commit 39d45d8

Browse files
authored
Lenght => Length (#388)
1 parent 3c9a761 commit 39d45d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.Azure.WebJobs.Extensions.OpenApi.Core/Extensions/OpenApiSchemaExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,13 @@ private static void ApplyStringLengthAttribute(OpenApiSchema schema, StringLengt
520520

521521
private static void ApplyRequiredAttribute(OpenApiSchema schema, RequiredAttribute requiredAttribute)
522522
{
523-
if (schema.Type == "string" && !requiredAttribute.AllowEmptyStrings && !IsMinLenghtSet(schema))
523+
if (schema.Type == "string" && !requiredAttribute.AllowEmptyStrings && !IsMinLengthSet(schema))
524524
{
525525
schema.MinLength = 1;
526526
}
527527
}
528528

529-
private static bool IsMinLenghtSet(OpenApiSchema schema)
529+
private static bool IsMinLengthSet(OpenApiSchema schema)
530530
{
531531
return schema.MinLength != null && schema.MinLength > 0;
532532
}

0 commit comments

Comments
 (0)