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
  • #11782
Closed
Open
Issue created Mar 03, 2022 by Administrator@rootContributor4 of 4 checklist items completed4/4 checklist items

[BUG] [typescript-angular] join does not exist on type Set

Created by: JeanMeche

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?
Description

When having uniqueItems: true" in the yaml the generated typescript code has an error : Property 'join' does not exist on type 'Set<XXXX>'.ts(2339)

The error does not happen when using --type-mappings=set=Array.

openapi-generator version

5.3.1

OpenAPI declaration file content or url
servers:
  - url: http://localhost/api
    description: Local development environment
paths:

  /tools/in-zones:
    get:
      operationId: GetToolsInMultipleZone
      tags:
        - Tools
      summary: ...
      description: ...
      parameters:
        - name: zoneIds
          in: query
          description: ...
          required: true
          style: form
          explode: false
          schema:
            type: array
            minLength: 1
            maxLength: 100
            uniqueItems: true
            items:
              $ref: '#/components/schemas/ZoneIdSchema'
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolsCollectionResponseSchema'
        '400':
          description: Bad Request
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorSchema'
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Assignee
Assign to
Time tracking