-
Notifications
You must be signed in to change notification settings - Fork 6k
CSharp code generator - property names changed to fit language convention #727
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
Comments
The issue should be addressed by #700 I wonder if you can do a test to help confirm. |
I want to do the test but I am not able to merge the change request, it says: |
please pull the fix from https://github.com/wing328/swagger-codegen/tree/csharp_restcsharp instead as the PR #700 has not been merged into develop_2.0 branch. |
Thank you, the problem is solved in the csharp_rescsharp codeline. |
No problem. Thanks for your time in testing the change. I believe @fehguy is quite busy these days. How urgent do you need the change ? (the change will be merged into develop_2.0 branch but not master) |
Within one week would be great. |
Can't guarantee that. The earliest we can make it is probably next weekend, but again, no guarantee. |
ok, thank you anyway. |
Keep in mind #700 may be merged sooner and you could use the develop_2.0 branch easily. |
@boazsapir FYI. csharp_restsharp has been merged into develop_2.0. Please kindly close this issue if the property names for CSharp are all good. |
@wing328 I cannot test now because of the build error in develop_2.0. Will try later today |
merged. |
I have a property name in my schema which is lower-case, e.g.:
*@swg\Definition(definition="TimeIntput", type="object",
* required={ "time" },
* @swg\Property(property="time", type="integer", description="timestamp"),
* )
This property should be included as part of a request body:
The CSharp code generator creates a class where the property name is capitalized according to the language conventions:
namespace io.swagger.Model {
public class TimeInput {
}
When sending the request by APIInvoker, the CSharp object which is an instance of the above class is serialized so the parameter in the request body has the capitalized name.
This means that the server does not get the parameter with the expected name as defined in the schema.
The text was updated successfully, but these errors were encountered: