Closed
Description
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?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Unique Array of Enum properties are not generated properly. Instead of Set<Enum>
they are exposed just as Enum
:
export class TestRequest {
'testProperty'?: TestRequestTestPropertyEnum
}
Expected behaviour:
export class TestRequest {
'testProperty'?: Set<TestRequestTestPropertyEnum>
}
openapi-generator version
7.0.0
OpenAPI declaration file content or url
definitions:
TestRequest:
type: object
properties:
test_property:
type: array
uniqueItems: true
items:
type: string
enum:
- foo
- bar
- baz
- dar
Generation Details
Steps to reproduce
- Generate any typescript client with following set of enums property
- Expected generated property type is
Set<TestRequestTestPropertyEnum>
, but currently it isTestRequestTestPropertyEnum
instead