-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
NSwagStudio generating wrong method signature #842
Comments
Theres an option to ignore unused path parameters... |
Hi @RSuter, But I don't want to ignore anything, I need both methods and their optional parameters. |
The problem is that you have this signature
ie there is a |
This parameter is set on the controller via an action filter. My problem is in the second method, not in the first one. There is no |
Ah ok, this is strange. Can you provide a sample controller class where i can reproduce this? |
The code on #843 also generates the parameter problem. I guess that as the URL is appended, the "{subscriptionId}" appears there and then the required parameter is generated. |
Yes this is the problem... For now remove the route on the controller and specify all routes manually on the action - or dont use absolute routes on the actions when a ctrl route is set |
Can we close this and fix the other one? |
Yeap, sounds good. |
Hi guys,
I have these routes in my asp.net core:
NSwagStudio is generates the first method just fine, but it is adding a phantom parameter called subscriptionId to the second one:
This method is calling the first's method endpoint, nswagstudio is somehow mixing them two. Or maybe I'm doing something wrong...?
Any thoughts?
The text was updated successfully, but these errors were encountered: