yuka1984 / azure-functions-extensions-swashbuckle

MIT License
33 stars 29 forks source link

Generated XML Documentation File Not Working #31

Open yatteer opened 4 years ago

yatteer commented 4 years ago

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" } } }

eriktack commented 4 years ago

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" } } }