Skip to content

Inconsistent or unclear string format : byte or base64 #3886

Closed
@sjbenoist

Description

@sjbenoist

The OpenAPI 3.0.3 specification states in section 4.4 that it defines formats "byte" as base64 encoded characters and "binary" as any sequence of octets.

However, section 4.7.14.3 Considerations for File Uploads, mentions two alternative options for content transfer, either with base64 encoding or in binary. The values used for "format" are "base64" and "binary".

Section 4.7.14.5 Special considerations for multipart conten also mentions format:binary and format:base64 as markers implying that the default content-Type is application/octet-stream

"base64" as a possible value for format is not defined by the specification and is therefore ambiguous. Is it a synonym of the "byte" value ? Why should implementations support two different values if they are synonyms ?

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