[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'