You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versions/3.0.md
+2-12Lines changed: 2 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -95,33 +95,23 @@ An additional primitive data type `"file"` is used by the [Parameter Object](#pa
95
95
<aname="dataTypeFormat"></a>Primitives have an optional modifier property `format`.
96
96
OAS uses several known formats to more finely define the data type being used.
97
97
However, the `format` property is an open `string`-valued property, and can have any value to support documentation needs.
98
-
Formats such as `"email"`, `"T-shirt size"`, etc., can be used even though they are not defined by this specification.
98
+
Formats such as `"email"`, `"uuid"`, etc., can be used even though they are not defined by this specification.
99
99
Types that are not accompanied by a `format` property follow their definition from the JSON Schema (except for `file` type which is defined above).
100
100
The formats defined by the OAS are:
101
101
102
102
103
103
Common Name | [`type`](#dataTypeType) | [`format`](#dataTypeFormat) | Comments
104
104
----------- | ------ | -------- | --------
105
-
octet | `integer` | `uint8` | unsigned 8 bits
106
-
signed byte| `integer` | `int8` | signed 8 bits
107
-
short| `integer` | `int16` | signed 16 bits
108
105
integer | `integer` | `int32` | signed 32 bits
109
106
long | `integer` | `int64` | signed 64 bits
110
-
big integer | `integer` | | |
111
107
float | `number` | `float` | |
112
108
double | `number` | `double` | |
113
-
decimal | `number` | `decimal` | decimal floating-point number, recipient-side internal representation as a binary floating-point number may lead to rounding errors
0 commit comments