Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- updates documentation for weighted structured mime types #26

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions OpenAPI/kiota/using.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@ kiota generate --serializer Contoso.Json.CustomSerializer

#### `--structured-mime-types (-m)`

The MIME types to use for structured data model generation. Accepts multiple values.
The MIME types to use for structured data model generation with their preference weight. Any type without a preference will have its preference defaulted to 1. Accepts multiple values. The notation style and the preference weight logic follow the convention [defined in RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-accept).

Default values :

- `application/json`
- `application/x-www-form-urlencoded`
- `multipart/form-data`
- `text/plain`
- `application/json;q=1`
- `application/x-www-form-urlencoded;q=0.2`
- `multipart/form-data;q=0.1`
- `text/plain;q=0.9`

> [!NOTE]
> Only request body types or response types with a defined schema will generate models, other entries will default back to stream/byte array.
Expand Down