Skip to content

v3.2: ambiguity/error with documentation of contentType in the encoding object #5280

@karenetheridge

Description

@karenetheridge

The documentation for the "encoding" object describes contentType as a comma-separated list of media-types (wildcards permitted).

  • what is the purpose of listing more than one media-type here? When deserializing a message body, how do we know which one to use? And when serializing, what purpose does this field serve?
  • this is inconsistent with the schema, which specifies that the property is format: media-range, which a comma-separated list is not.

The example which uses this, https://spec.openapis.org/oas/latest#example-url-encoded-form-with-binary-values, also does not clarify how the contentType of "image/png, image/jpeg" is to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions