swagger-api/swagger-codegen

[Rust] Enhancements to Rust generator

Open

#6 250 ouverte le 6 août 2017

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)HTML (5 474 forks)batch import
Client: RustEnhancement: Generalhelp wanted

Métriques du dépôt

Stars
 (12 701 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Description

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

  • Add "docstring" to methods in API and model files for documenting the usage
  • Add support for form parameters
  • Add support for file upload (type: file)
  • Add validation for parameters and model properties
  • Make timeout (http) configurable
  • Implement 'object' type conversion (https://github.com/swagger-api/swagger-codegen/pull/6846)

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.

Guide contributeur