yuka1984 / azure-functions-extensions-swashbuckle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated XML Documentation File Not Working

yatteer opened this issue · comments

Anyone else having issues with XML Documentation? The feature seems not to be working.
Azure Functions unable to locate XML file...

{
"version": "2.0",
"extensions": {
"Swashbuckle": {
"XmlPath": "Func.xml"
}
}
}

In Azure functions v3, Its read from the current IConfiguration instance in the DI provider, not from host.json.
If you put it in this path in your config, it will be read:
"AzureWebJobs": {
"extensions": {
"Swashbuckle": {
"XmlPath": "your.api.xml.file.name.without.path.xml"
}
}
}