Skip to content

version 3.0: additional formats #607

Description

@ralfhandl

As there are several issues proposing new formats, here a list of the possible future full picture

Common NameTypeFormatComments
octet/(unsigned) byteintegeruint8new: unsigned 8 bits
signed byteintegerint8new: signed 8 bits
shortintegerint16new: signed 16 bits
integerintegerint32signed 32 bits
longintegerint64signed 64 bits
big integerinteger
float/singlenumberfloat
doublenumberdouble
decimalnumberdecimalnew: decimal floating-point number, recipient-side internal representation as a binary floating-point number may lead to rounding errors
big decimalnumber
stringstring
bytestringbytebase64 encoded characters
url-safe binarystringbase64urlnew: base64url encoded characters - #606
binarystringbinaryany sequence of octets
booleanboolean
datestringdateAs defined by full-date - RFC3339
dateTimestringdate-timeAs defined by date-time - RFC3339
time (of day)stringtimenew: As defined by partial-time - RFC3339 - #358
durationstringdurationnew: As defined by xs:dayTimeDuration - XML Schema 1.1 - #359
uuidstringuuidnew: Universally Unique Identifier (UUID) RFC4122
passwordstringpasswordUsed to hint UIs the input needs to be obscured.

2023-03-24: all of the above-mentioned formats are now registered in the OpenAPI Initiative Formats Registry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Schemachanges related to the schema(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions