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
  • #2275
Closed
Open
Issue created Mar 01, 2019 by Administrator@rootContributor

[BUG] [Aspnetcore2.1] Missing tag closure of StringLength attribute

Created by: seda-zor

Description

I have a parameter with min/max length attributes. When I run the generator, there is a missing tag closure of StringLength attribute.

public virtual async Task<List<Facility>> FacilitiesList([FromQuery][StringLength(3, MinimumLength=3)string area, [FromQuery]string addressCountry)

It can be seen in these resource files as well: https://github.com/OpenAPITools/openapi-generator/search?q=MinimumLength

openapi-generator version

3.0.2

OpenAPI declaration file content
  parameters:
    area:
      name: area
      required: false
      schema:
        type: string
        maxLength: 3
        minLength: 3
        example: "MOO"
Assignee
Assign to
Time tracking