We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f45335b commit 802dcfcCopy full SHA for 802dcfc
src/JsonApiDotNetCore.OpenApi.Swashbuckle/SwaggerComponents/ResourceDocumentationReader.cs
@@ -1,5 +1,6 @@
1
using System.Collections.Concurrent;
2
using System.Reflection;
3
+using System.Xml;
4
using System.Xml.XPath;
5
using JsonApiDotNetCore.Configuration;
6
using JsonApiDotNetCore.Resources.Annotations;
@@ -68,7 +69,8 @@ internal sealed class ResourceDocumentationReader
68
69
70
if (File.Exists(documentationPath))
71
{
- var document = new XPathDocument(documentationPath);
72
+ using var reader = XmlReader.Create(documentationPath);
73
+ var document = new XPathDocument(reader);
74
return document.CreateNavigator();
75
}
76
0 commit comments