redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

flattenArg:true - does NOT work.

Open krasevych opened this issue 1 year ago • 0 comments

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

krasevych avatar Mar 26 '24 11:03 krasevych