-
Notifications
You must be signed in to change notification settings - Fork 8
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
New rule for Web Apis #149
Comments
Here are some details of the new rule : General Details:
Technical Details :The Rule will look for a method with the following specs :
Test Result :
In case of any changes needs to be done on this rule please let me know. |
This rule is not working. It just warn when we don't defined the parameter type. but here after removing the class we can see the error This happen because of line 62 in the rule is written like this Also it does not warn about string parameters |
This is Edited on This Test Result :
@Karvan I have a question :
we should not warn about Also I saw Roslyn consider So @PaymonK @Karvan @Foroughi I am not sure about |
The changes are available on GCop2.6.1 |
If we have a web api action method such as:
If the following conditions are met:
Then show a warning to say: "For a {Post} Web Api, specify the parameter binding source explicitly. Did you mean to add [FromBody]?"
Instead of {Post} use the actual http verb.
The text was updated successfully, but these errors were encountered: