Skip to content

Commit

Permalink
Merge pull request #1664 from microsoft/mk/fix-isFragment-typo
Browse files Browse the repository at this point in the history
Fixes Fragment typo
  • Loading branch information
MaggieKimani1 authored May 15, 2024
2 parents aa5e01e + bb3fcfe commit 4afdd15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.OpenApi/Models/OpenApiReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class OpenApiReference : IOpenApiSerializable
/// <summary>
/// Gets a flag indicating whether a file is a valid OpenAPI document or a fragment
/// </summary>
public bool IsFragrament = false;
public bool IsFragment = false;

/// <summary>
/// The OpenApiDocument that is hosting the OpenApiReference instance. This is used to enable dereferencing the reference.
Expand Down Expand Up @@ -231,7 +231,7 @@ private string GetExternalReferenceV3()
{
if (Id != null)
{
if (IsFragrament)
if (IsFragment)
{
return ExternalResource + "#" + Id;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Reader/V3/OpenApiV3VersionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public OpenApiReference ConvertToOpenApiReference(
}
else
{
openApiReference.IsFragrament = true;
openApiReference.IsFragment = true;
}

openApiReference.ExternalResource = segments[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ namespace Microsoft.OpenApi.Models
}
public class OpenApiReference : Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
{
public bool IsFragrament;
public bool IsFragment;
public OpenApiReference() { }
public OpenApiReference(Microsoft.OpenApi.Models.OpenApiReference reference) { }
public string Description { get; set; }
Expand Down

0 comments on commit 4afdd15

Please sign in to comment.