Azure / Azure/azure-functions-openapi-extension

Would be nice to be able to specify multiple content types?

Open
#59 3 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.