Skip to content

Commit

Permalink
fix some dodgy indents
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 6, 2023
1 parent 94c811e commit ec241cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi.Readers/ParseNodes/MapNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public override Dictionary<string, T> CreateMapWithReference<T>(
Id = entry.key
};
}
}
}
finally
{
Context.EndObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ internal static partial class OpenApiV2Deserializer
},
{
"consumes",
(o, n) => {
(o, n) =>
{
var consumes = n.CreateSimpleList(s => s.GetScalarValue());
if (consumes.Count > 0)
{
n.Context.SetTempStorage(TempStorageKeys.GlobalConsumes, consumes);
}
}
}
},
{
"produces", (o, n) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ internal static partial class OpenApiV3Deserializer
{"components", (o, n) => o.Components = LoadComponents(n)},
{"tags", (o, n) => {o.Tags = n.CreateList(LoadTag);
foreach (var tag in o.Tags)
{
{
tag.Reference = new()
{
Id = tag.Name,
Type = ReferenceType.Tag
};
}
}
} },
{"externalDocs", (o, n) => o.ExternalDocs = LoadExternalDocs(n)},
{"security", (o, n) => o.SecurityRequirements = n.CreateList(LoadSecurityRequirement)}
Expand Down

0 comments on commit ec241cc

Please sign in to comment.