The rules for serialization of the parameter are specified in one of two ways. For more complex scenarios, the content property can define the media type and schema of the parameter. A parameter MUST contain either a schema property, or a content property, but not both. When example or examples are provided in conjunction with the schema object, the example MUST follow the prescribed serialization strategy for the parameter.

interface WithContent {
    content: Record<string, MediaTypeObject>;
    schema?: undefined;
}

Hierarchy (view full)

Properties

Properties

content: Record<string, MediaTypeObject>
schema?: undefined