autorest
autorest copied to clipboard
Parameter 'ScriptQuery' in 'header' has content.<mediaType> which is not supported right now. Use schema instead.
The problem is that the JSON is correct
"summary": "Return list of Scripts",
"parameters": [{
"name": "ScriptQuery",
"in": "header",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScriptQuery"
}
}
}
}
]
I don't know why is reporting this issue
Seems to be an issue of autorest.
Autorest doesn’t support header, query parameters that are json(or other seeialization format) it only support the style options in openapi3
Thanks for the reply It's a fundamental feature. When will it be implemented?
Hi @mdaneri, this feature is not on our roadmap at the moment, autorest supports only a subset of OpenAPI3 and this is the first time we got a request for this.
As a workaround you can represent the parameter as a string and let the user serialize it.