Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Fragment typo #1664

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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
Loading