Skip to content

Commit f663631

Browse files
committed
Backed out accidental changes
1 parent ed8eac7 commit f663631

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

versions/3.0.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,33 +95,23 @@ An additional primitive data type `"file"` is used by the [Parameter Object](#pa
9595
<a name="dataTypeFormat"></a>Primitives have an optional modifier property `format`.
9696
OAS uses several known formats to more finely define the data type being used.
9797
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.
9999
Types that are not accompanied by a `format` property follow their definition from the JSON Schema (except for `file` type which is defined above).
100100
The formats defined by the OAS are:
101101

102102

103103
Common Name | [`type`](#dataTypeType) | [`format`](#dataTypeFormat) | Comments
104104
----------- | ------ | -------- | --------
105-
octet | `integer` | `uint8` | unsigned 8 bits
106-
signed byte| `integer` | `int8` | signed 8 bits
107-
short| `integer` | `int16` | signed 16 bits
108105
integer | `integer` | `int32` | signed 32 bits
109106
long | `integer` | `int64` | signed 64 bits
110-
big integer | `integer` | | |
111107
float | `number` | `float` | |
112108
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
114-
big decimal | `number` | | |
115109
string | `string` | | |
116-
encoded binary | `string` | `byte` | base64 encoded characters - [RFC4648](https://tools.ietf.org/html/rfc4648#section-4)
117-
url-safe encoded binary | `string` | `base64url` | base64url encoded characters - [RFC4648](https://tools.ietf.org/html/rfc4648#section-5)
110+
byte | `string` | `byte` | base64 encoded characters
118111
binary | `string` | `binary` | any sequence of octets
119112
boolean | `boolean` | | |
120113
date | `string` | `date` | As defined by `full-date` - [RFC3339](http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14)
121114
dateTime | `string` | `date-time` | As defined by `date-time` - [RFC3339](http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14)
122-
time (of day) | `string` | `time` | As defined by `partial-time` - [RFC3339](http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14)
123-
duration| `string` | `duration` | As defined by `xs:dayTimeDuration` - [XML Schema 1.1](http://www.w3.org/TR/xmlschema11-2/#dayTimeDuration)
124-
uuid| `string` | `uuid` | Universally Unique Identifier (UUID) - [RFC4122](https://www.ietf.org/rfc/rfc4122.txt)
125115
password | `string` | `password` | Used to hint UIs the input needs to be obscured.
126116

127117
### Schema

0 commit comments

Comments
 (0)