Skip to content

Commit 1b1b20b

Browse files
authored
format:base64 doesn't exist -> format:byte (#3182)
* format:base64 doesn't exist -> format:byte * Remove lines without format from Data Formats table
1 parent 7d0eb37 commit 1b1b20b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

versions/3.0.4.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,8 @@ The formats defined by the OAS are:
162162
`integer` | `int64` | signed 64 bits (a.k.a long)
163163
`number` | `float` | |
164164
`number` | `double` | |
165-
`string` | | |
166165
`string` | `byte` | base64 encoded characters
167166
`string` | `binary` | any sequence of octets
168-
`boolean` | | |
169167
`string` | `date` | As defined by `full-date` - [RFC3339](https://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14)
170168
`string` | `date-time` | As defined by `date-time` - [RFC3339](https://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14)
171169
`string` | `password` | A hint to UIs to obscure input.
@@ -1446,7 +1444,7 @@ In contrast with the 2.0 specification, `file` input/output content in OpenAPI i
14461444
# content transferred with base64 encoding
14471445
schema:
14481446
type: string
1449-
format: base64
1447+
format: byte
14501448
```
14511449

14521450
```yaml
@@ -1537,7 +1535,7 @@ When passing in `multipart` types, boundaries MAY be used to separate sections o
15371535

15381536
* If the property is a primitive, or an array of primitive values, the default Content-Type is `text/plain`
15391537
* If the property is complex, or an array of complex values, the default Content-Type is `application/json`
1540-
* If the property is a `type: string` with `format: binary` or `format: base64` (aka a file object), the default Content-Type is `application/octet-stream`
1538+
* If the property is a `type: string` with `format: binary` or `format: byte` (aka a file object), the default Content-Type is `application/octet-stream`
15411539

15421540

15431541
Examples:

0 commit comments

Comments
 (0)