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
  • Issues
  • #14506
Closed
Open
Issue created Jan 23, 2023 by Administrator@rootContributor0 of 1 checklist item completed0/1 checklist item

[BUG][ELIXIR] Bug generating elixir connection.ex module (Typo in the mustache file)

Created by: MananV-UNI

Bug Report Checklist

  • [YES] Have you provided a full/minimal spec to reproduce the issue?
  • [] Have you validated the input using an OpenAPI validator (example)?
  • [] Have you tested with the latest master to confirm the issue still exists?
  • [] Have you searched for related issues/PRs?
  • [YES] What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Generated an elixir specification for Azure SDK. The connection.ex file being generated has typo's. Specifically, "Tesla.Middleware.Headers" is generated as "Tesla.Middlware.Headers". This does not allow us to send requests.

openapi-generator version

Version 6.2.1

OpenAPI declaration file content or url

File: connection.ex.mustache (https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/elixir/connection.ex.mustache)

Generation Details

Language: Elixir Libraries: Azure REST API Specs (https://github.com/Azure/azure-rest-api-specs)

Steps to reproduce
  1. Clone the Azure Rest API Specs Repo
  2. Run the CLI generator on the following file: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-01-01/subscriptions.json
  3. Write some code to test listing subscriptions.
  4. View the error
Related issues/PRs
Suggest a fix

Fix the typo.

Assignee
Assign to
Time tracking