Skip to content

Commit d0380ce

Browse files
committed
Remove static field modifier
1 parent 71c3963 commit d0380ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Microsoft.OpenApi/Services/OpenApiWalker.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Microsoft.OpenApi.Services
1818
/// </summary>
1919
public class OpenApiWalker
2020
{
21-
private static OpenApiDocument HostDocument;
21+
private OpenApiDocument _hostDocument;
2222
private readonly OpenApiVisitorBase _visitor;
2323
private readonly Stack<JsonSchema> _schemaLoop = new Stack<JsonSchema>();
2424
private readonly Stack<OpenApiPathItem> _pathItemLoop = new Stack<OpenApiPathItem>();
@@ -42,7 +42,7 @@ public void Walk(OpenApiDocument doc)
4242
return;
4343
}
4444

45-
HostDocument = doc;
45+
_hostDocument = doc;
4646
_schemaLoop.Clear();
4747
_pathItemLoop.Clear();
4848

@@ -902,9 +902,9 @@ internal JsonSchema Walk(JsonSchema schema, bool isComponent = false)
902902
Walk(key, () => newSchema = Walk(item.Value));
903903
props.Add(key, newSchema);
904904
schema = builder.Properties(props);
905-
if (HostDocument != null)
905+
if (_hostDocument != null)
906906
{
907-
schema.BaseUri = HostDocument.BaseUri;
907+
schema.BaseUri = _hostDocument.BaseUri;
908908
}
909909
}
910910
});

0 commit comments

Comments
 (0)