Conversation
|
@vfpfafrf thanks for the PR. I noticed that you've changed some methods from public/protected to private. Can we keep those as public/protected as there are use cases in which the developers customize the generator? |
|
@wing328 I rollback method modifies to public/protected. May be it should be interface with abstract and default generator implementations ? |
Yes, I think that's better as the same Example Generator cannot meet the syntax requirement of all languages (e.g. C# float value needs to end with "f", e.g. |
I dont think this is a problem - example objects use deserialization from JSON-string - from swagger-codegen/modules/swagger-codegen/src/main/resources/aspnet5/mapReturn.mustache (or from listReturn.mustache) But the problem is in swagger-codegen/modules/swagger-codegen/src/main/resources/aspnet5/controller.mustache where exampleJson declared as null-object, so result is always empty: I don't have experience in C#, so i can't fix it in right way |
Fixes several issues in ExampleGenerator:
Definition:
Result:
Definition:
Result:
Definition:
Result: