fix: check file exist

This commit is contained in:
Polianin Nikita 2024-07-05 01:57:34 +03:00
parent f42caa3a45
commit 21055176ac

View File

@ -44,7 +44,10 @@ public static class SwaggerConfiguration
}
});
if (File.Exists(Path.Combine(basePath, "docs.xml")))
options.IncludeXmlComments(Path.Combine(basePath, "docs.xml"));
if (File.Exists(Path.Combine(basePath, "ApiDtoDocs.xml")))
options.IncludeXmlComments(Path.Combine(basePath, "ApiDtoDocs.xml"));
});