Encoding
This class represents an encoding object, providing details on how to serialize a single property in a request body. It specifies content type, headers, serialization style, and whether to explode or allow reserved characters.
Attributes
| Attribute | Type | Description |
|---|---|---|
| contentType | str = None | The content type of the encoding, which specifies the media type of the request body. |
| headers | dict[str, Union["Header", [Reference](reference.md?sid=fastapi_openapi_models_reference)]] = None | A dictionary of header objects or references, which defines the headers that are sent with the encoded data. |
| style | str = None | The serialization style for the encoded data, which dictates how the data is formatted. |
| explode | bool = None | A boolean indicating whether to explode the encoded data, affecting how arrays and objects are serialized. |
| allowReserved | bool = None | A boolean indicating whether reserved characters are allowed in the encoded data, impacting URL encoding behavior. |