-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
Description
As there are several issues proposing new formats, here a list of the possible future full picture
Common Name | Type | Format | Comments |
---|---|---|---|
octet/(unsigned) byte | integer |
uint8 |
new: unsigned 8 bits |
signed byte | integer |
int8 |
new: signed 8 bits |
short | integer |
int16 |
new: signed 16 bits |
integer | integer |
int32 |
signed 32 bits |
long | integer |
int64 |
signed 64 bits |
big integer | integer |
||
float/single | number |
float |
|
double | number |
double |
|
decimal | number |
decimal |
new: decimal floating-point number, recipient-side internal representation as a binary floating-point number may lead to rounding errors |
big decimal | number |
||
string | string |
||
byte | string |
byte |
base64 encoded characters |
url-safe binary | string |
base64url |
new: base64url encoded characters - #606 |
binary | string |
binary |
any sequence of octets |
boolean | boolean |
||
date | string |
date |
As defined by full-date - RFC3339 |
dateTime | string |
date-time |
As defined by date-time - RFC3339 |
time (of day) | string |
time |
new: As defined by partial-time - RFC3339 - #358 |
duration | string |
duration |
new: As defined by xs:dayTimeDuration - XML Schema 1.1 - #359 |
uuid | string |
uuid |
new: Universally Unique Identifier (UUID) RFC4122 |
password | string |
password |
Used 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.
cleankod, jnj16180340, roberterdin, sebucando, yankhonskikendaxa and 18 more