-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Route Path Error #86
Comments
@RaysApps Have you added This document helps you: https://github.com/Azure/azure-functions-openapi-extension/blob/main/docs/enable-open-api-endpoints.md#enable-openapi-document |
Thank you for sharing the relevant doc. I've migrated a lot of Asp.net core web APIs to Azure HTTP functions and noticed invalid errors in the swagger UI after publishing to Azure. Is it possible to report them as errors at build time? |
Yes it would be nice to have an optional analyser package to suggest
missing attributes etc.
…On Sat, 10 Apr 2021, 11:41 Chandra Mohan Rayaprol, ***@***.***> wrote:
Thank you for sharing the relevant doc. I've migrated a lot of Asp.net
core web APIs to Azure HTTP functions and noticed invalid errors in the
swagger UI after publishing to Azure. Is it possible to report them as
errors at build time?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEDMJFEQRYTROE4NIMLPTTTIATN3ANCNFSM42TUHZAA>
.
|
@RaysApps @danielabbatt That's a good idea! Let me dig into it. |
Initializing the Route parameter in the HTTPAttribute is resulting in undefined path errors in the generated swagger file. Could you please advise?
// Swagger Errors
{"messages":[""attribute paths.'/AddUserAccount'(post).responses is missing","attribute paths.'/Account/DeleteUserAccount'(delete).responses is missing","attribute]
}
public async Task<IActionResult> AddUserAccount( [HttpTrigger(AuthorizationLevel.Function, "post", Route = "AddUserAccount")] HttpRequest req, ILogger log) { // await azureAccount.AddUserAccount(req.Claims()); return new OkResult(); }
`
The text was updated successfully, but these errors were encountered: