Bug Report Checklist
Description
Generated Api for unique item collection on the response body is not compiling because map operation is executed on a Set.
TS2339: Property map does not exist on type Set<Tag>
openapi-generator version
7.25.0
OpenAPI declaration file content or url
openapi: 3.0.0
info:
title: uniqueItems test spec
version: 1.0.0
description: >-
Spec used to test arrays with uniqueItems across every OpenAPI location
and item type (string, integer, number, boolean, object, array, $ref).
paths:
/unique-request-body:
post:
operationId: uniqueRequestBody
requestBody:
$ref: '#/components/requestBodies/UniqueArrayRequest'
responses:
'200':
description: OK
components:
schemas:
Tag:
type: object
properties:
id:
type: integer
format: int64
name:
type: string
requestBodies:
UniqueArrayRequest:
description: Request body that is an array with uniqueItems
required: true
content:
application/json:
schema:
type: array
uniqueItems: true
items:
$ref: '#/components/schemas/Tag'
Generation Details
Default generation, without Set to Array type mapping.
Steps to reproduce
Generate typescript-fetch client for the provided
Related issues/PRs
N/A
Suggest a fix
I will fix it myself.
Bug Report Checklist
Description
Generated Api for unique item collection on the response body is not compiling because
mapoperation is executed on aSet.openapi-generator version
7.25.0
OpenAPI declaration file content or url
Generation Details
Default generation, without Set to Array type mapping.
Steps to reproduce
Generate typescript-fetch client for the provided
Related issues/PRs
N/A
Suggest a fix
I will fix it myself.