swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
17.09k stars 6.03k forks source link

[Rust] Enhancements to Rust generator #6250

Open wing328 opened 7 years ago

wing328 commented 7 years ago
Description

Here is a list of enhancements I can think of for the Rust client generator:

If anyone has any feedback/suggestion, please reply to let us know.

Swagger-codegen version

Latest master

Command line used for generation
mvn clean install
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate  -t modules/swagger-codegen/src/main/resources/rust -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l rust -o samples/client/petstore/rust
Related issues/PRs

https://github.com/swagger-api/swagger-codegen/pull/6105

If anyone wants to work on these enhancements, please reply to let us know and we'll show you some good starting points.

wing328 commented 7 years ago

Minor fix for Windows platform via cc848a1

wing328 commented 7 years ago

Added "Implement 'object' type conversion" via #6846