I'd like to define http endpoint with "any header welcome" in specification (i.e. dictionary of strings). Right now I do have to account for every single (known) header one-by-one:
"parameters": [
{
"name": "x-header-1",
"in": "header",
"type": "string"
},
{
"name": "x-header-2",
"in": "header",
"type": "string",
}
]
I'd like to define them like
"parameters": [
{
"name": "headers"
"in": "headers"
}
]
And ultimately in C# have a code like
SomeMethod([FromHeader]Dictionary<string, string> ...)
for this definition.
Is this even possible ?