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
  • #7756
Closed
Open
Issue created Oct 19, 2020 by Administrator@rootContributor5 of 5 checklist items completed5/5 checklist items

[BUG][csharp-nancyfx] An invalid c# Modules file is created under certain conditions

Created by: tzickel

Bug Report Checklist

  • 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?
  • What's the actual output vs expected output?
Description

Sometimes (I'm not sure what's the trigger), the c# nancyfx code generator emits an empty (and invalid) "using ;") line in a Modules file.

openapi-generator version

master

OpenAPI declaration file content or url
swagger: "2.0"
info:
  version: "0.0.1"
  title: "bug"
host: "localhost:8080"
basePath: "/v1alpha1"
schemes:
- "http"
paths:
  /test:
    post:
      parameters:
      - in: "body"
        name: "body"
        schema:
          type: "object"
          properties:
            name:
              type: "string"
      responses:
        "204":
          description: "successful operation"
Generation Details

standard csharp-nancyfx generation.

Steps to reproduce

generate the above spec file and look in the file: src/Org.OpenAPITools/Modules/DefaultModule.cs

Related issues/PRs
Suggest a fix
Assignee
Assign to
Time tracking