Azure / Azure/azure-functions-openapi-extension
Would be nice to be able to specify multiple content types?
Open
enhancement
- Dominant language
- C#
- Stars
- 388
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
Currently the `OpenApiRequestBodyAttribute` only accepts one content type string. The output of this in the openapi.json is:
```json
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
```
But this attribute accepts multiple values, so the following is valid Openai syntax:
```json
"consumes": [
"application/json",
"test/html"
],
"produces": [
"application/json"
],
```
etc. There is no way to currently add these open api attributes using this plugin.
Contributor guide
Assessment
This issue has not been assessed yet.