Closed
Description
When a specification defines some parameters, such as:
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "accept-language",
"in": "header",
"required": false,
"type": "string"
}
The current output contains:
parameters: {
path: {
id: string;
};
header: {
"accept-language"?: string;
};
};
Maybe this would be a good option rather than the default behaviour, but I'd like the header
key in this example to be optional. This makes sense since all the fields included in it are optional and you may want to include none of them.