Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !7049

[Rust][reqwest] Fixed parameters of Array type

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/JRAndreassen/jr_50_rust_api_mustache into master Jul 25, 2020
  • Overview 0
  • Commits 6
  • Pipelines 0
  • Changes 2

Created by: JRAndreassen

@frol / @farcaller / @richardwhiuk / @paladinzh

Fixed parameters of Array type in "rust/reqwest/api.mustache"

the following definition:

        - description: Secret Mode. Mandatory for 'Node-Locked' licensing model.
          in: formData
          items:
            default: PREDEFINED
            enum:
              - PREDEFINED
              - CLIENT
            type: string
          name: nodeSecretMode
          required: false
          type: array

Fix for api_mustache ignoring Array's in parameters... error[E0599]: no method named join found for reference &str in the current scope --> src\apis\product_module_api.rs:110:62 | 110 | form_params.insert("nodeSecretMode", param_value.join(",").to_string()); | ^^^^ method not found in &str Not using #isListContainer in parameters

Fixed for both standard and "vendorExtensions.x-group-parameters=true" and compiles under both

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/JRAndreassen/jr_50_rust_api_mustache