Created by: t-h-e
uniqueItems produces Set instead of Array as type, but the corresponding code did not treat Set correctly
use Array.from
and new Set
to convert from Set to Array and vice versa, if uniqueItems is true.
related to https://github.com/OpenAPITools/openapi-generator/issues/8258, but only fixes typescript-fetch