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
+73-17Lines changed: 73 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ password | `string` | `password` | Used to hint UIs the input needs to be obscur
168
168
169
169
### <aname="richText"></a>Rich Text Formatting
170
170
Throughout the specification `description` fields are noted as supporting CommonMark markdown formatting.
171
-
OpenAPI compliant tooling MUST support[CommonMark 0.27](http://spec.commonmark.org/0.27/).
171
+
Where OpenAPI tooling renders rich text it MUST support, at a minimum, markdown syntax as described by [CommonMark 0.27](http://spec.commonmark.org/0.27/). Tooling MAY choose to ignore some CommonMark features to address security concerns.
172
172
173
173
### <aname="relativeReferences"></a>Relative References in URLs
174
174
@@ -338,13 +338,39 @@ This object can be extended with [Specification Extensions](#specificationExtens
@@ -395,7 +448,7 @@ An object representing a Server Variable for server URL template substitution.
395
448
396
449
Field Name | Type | Description
397
450
---|:---:|---
398
-
<a name="serverVariableEnum"></a>enum | [`string`] | An enumeration of primitive type values to be used if the substitution options are from a limited set.
451
+
<a name="serverVariableEnum"></a>enum | [`string`] | An enumeration of string values to be used if the substitution options are from a limited set.
399
452
<a name="serverVariableDefault"></a>default | `string` | **Required.** The default value to use for substitution if an alternate value is not specified, and will be sent if an alternative value is _not_ supplied. Unlike the [Schema Object's](#schemaObject) `default`, this value MUST be provided by the consumer.
400
453
<a name="serverVariableDescription"></a>description | `string` | An optional description for the server variable. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
401
454
@@ -713,11 +766,13 @@ This object can be extended with [Specification Extensions](#specificationExtens
@@ -965,10 +1021,10 @@ In order to support common ways of serializing simple parameters, a set of `styl
965
1021
----------- | ------ | -------- | --------
966
1022
matrix | `primitive`, `array`, `object` | `path` | Path-style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.7)
967
1023
label | `primitive`, `array`, `object` | `path` | Label style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.5)
968
-
form | `primitive`, `array`, `object` | `query`, `cookie` | Form style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.8). This option replaces `collectionFormat` with a `csv` value.
969
-
simple | `array` | `path`, `header` | Simple style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.2).
970
-
spaceDelimited | `array` | `query` | Space separated array values. This option replaces `collectionFormat` equal to `ssv`.
971
-
pipeDelimited | `array` | `query` | Pipe separated array values. This option replaces `collectionFormat` equal to `pipes`.
1024
+
form | `primitive`, `array`, `object` | `query`, `cookie` | Form style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.8). This option replaces `collectionFormat` with a `csv` (when `explode` is false) or `multi` (when `explode` is true) value from OpenAPI 2.0.
1025
+
simple | `array` | `path`, `header` | Simple style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.2). This option replaces `collectionFormat` with a `csv` value from OpenAPI 2.0.
1026
+
spaceDelimited | `array` | `query` | Space separated array values. This option replaces `collectionFormat` equal to `ssv` from OpenAPI 2.0.
1027
+
pipeDelimited | `array` | `query` | Pipe separated array values. This option replaces `collectionFormat` equal to `pipes` from OpenAPI 2.0.
972
1028
deepObject | `object` | `query` | Provides a simple way of rendering nested objects using form parameters.
973
1029
974
1030
@@ -1016,7 +1072,7 @@ A header parameter with an array of 64 bit integer numbers:
1016
1072
"format": "int64"
1017
1073
}
1018
1074
},
1019
-
"style": "commaDelimited"
1075
+
"style": "simple"
1020
1076
}
1021
1077
```
1022
1078
@@ -1030,7 +1086,7 @@ schema:
1030
1086
items:
1031
1087
type: integer
1032
1088
format: int64
1033
-
style: commaDelimited
1089
+
style: simple
1034
1090
```
1035
1091
1036
1092
A path parameter of a string value:
@@ -1575,7 +1631,7 @@ A single encoding definition applied to a single schema property.
1575
1631
Field Name | Type | Description
1576
1632
---|:---:|---
1577
1633
<a name="encodingContentType"></a>contentType | `string` | The Content-Type to use for encoding a specific property. Default value depends on the property type: for `string` with `format` being `binary` – `application/octet-stream`; for other primitive types – `text/plain`; for `object` - `application/json`; for `array` – the default is defined based on the inner type.
1578
-
<a name="encodingHeaders"></a>headers | Map[`string`, Headers Object] | A string map allowing additional information to be provided as headers, for example `Content-Disposition`. Note `Content-Type` is described separately and will be ignored from this section.
1634
+
<a name="encodingHeaders"></a>headers | Map[`string`, [Header Object](#headerObject)] | A string map allowing additional information to be provided as headers, for example `Content-Disposition`. Note `Content-Type` is described separately and will be ignored from this section.
1579
1635
<a name="encodingStyle"></a>style | `string` | Describes how a specific property value will be serialized depending on its type . See [Parameter Object](#parameterObject) for details on the [`style`](#parameterStyle) property. The behavior follows the same values allowed for `query` parameters, including default values.
1580
1636
<a name="encodingExplode"></a>explode | `boolean` | When this is true, property values of type `array` or `object` generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When [`style`](#encodingStyle) is `form`, the default value is `true`. For all other styles, the default value is `false`.
1581
1637
<a name="encodingAllowReserved"></a>allowReserved | `boolean` | Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.2) `:/?#[]@!$&'()*+,;=` to be included without percent-encoding. The default value is `false`.
0 commit comments