redux-toolkit
redux-toolkit copied to clipboard
flattenArg:true - does NOT work.
I have scheme like this:
//......
"parameters": [
{
"name": "keys",
"in": "query",
"description": "test",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
]
//.....
take a look on "required": false.
gen result when flattenArg:true is type RequestArg = string[] - wrong!
gen result when flattenArg:false is type RequestArg ={ keys?: string[] } - good! because ?
Expected result when flattenArg:true: type RequestArg = string[] | undefined