Skip to content

Commit bb3fcfe

Browse files
committed
Fix fragment typo
1 parent aa5e01e commit bb3fcfe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Microsoft.OpenApi/Models/OpenApiReference.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class OpenApiReference : IOpenApiSerializable
6262
/// <summary>
6363
/// Gets a flag indicating whether a file is a valid OpenAPI document or a fragment
6464
/// </summary>
65-
public bool IsFragrament = false;
65+
public bool IsFragment = false;
6666

6767
/// <summary>
6868
/// The OpenApiDocument that is hosting the OpenApiReference instance. This is used to enable dereferencing the reference.
@@ -231,7 +231,7 @@ private string GetExternalReferenceV3()
231231
{
232232
if (Id != null)
233233
{
234-
if (IsFragrament)
234+
if (IsFragment)
235235
{
236236
return ExternalResource + "#" + Id;
237237
}

src/Microsoft.OpenApi/Reader/V3/OpenApiV3VersionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public OpenApiReference ConvertToOpenApiReference(
153153
}
154154
else
155155
{
156-
openApiReference.IsFragrament = true;
156+
openApiReference.IsFragment = true;
157157
}
158158

159159
openApiReference.ExternalResource = segments[0];

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ namespace Microsoft.OpenApi.Models
887887
}
888888
public class OpenApiReference : Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
889889
{
890-
public bool IsFragrament;
890+
public bool IsFragment;
891891
public OpenApiReference() { }
892892
public OpenApiReference(Microsoft.OpenApi.Models.OpenApiReference reference) { }
893893
public string Description { get; set; }

0 commit comments

Comments
 (0)