Bug Report Checklist
Description
Schemas with fields which contain uniqueItems: true and type: "array" are typed as Sets, which is wrong, because there is no such conversion happening in the code.
Even though it would be the case, Set is converted to JSON as an empty object anyway, so does not fit particular use case.
openapi-generator version
OpenAPI declaration file content or url
openapi: 3.0.0
paths:
/users:
post:
responses:
'200':
content:
application/json:
schema:
uniqueItems: true
type: array
items:
type: string
Generation Details
openapi-generator generate -g typescript-rxjs -o test -i test.yaml
Steps to reproduce
Related issues/PRs
#10770
Suggest a fix
Generate Arrays for uniqueItems: true fields, uniqueness of values in array will be checked on the server side or code anyway.
Bug Report Checklist
Description
Schemas with fields which contain
uniqueItems: trueandtype: "array"are typed as Sets, which is wrong, because there is no such conversion happening in the code.Even though it would be the case, Set is converted to JSON as an empty object anyway, so does not fit particular use case.
openapi-generator version
OpenAPI declaration file content or url
Generation Details
openapi-generator generate -g typescript-rxjs -o test -i test.yamlSteps to reproduce
Related issues/PRs
#10770
Suggest a fix
Generate Arrays for
uniqueItems: truefields, uniqueness of values in array will be checked on the server side or code anyway.