Skip to content

Commit af42644

Browse files
author
Ron
authored
Merge pull request OAI#1049 from OAI/commonmark-descriptions
Added CommonMark support to all description
2 parents 399ffdf + 812354a commit af42644

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

versions/3.0.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ An object representing a Server.
324324
Field Name | Type | Description
325325
---|:---:|---
326326
<a name="serverUrl"></a>url | `string` | **Required.** A URL to the target host. This URL supports Server Variables and may be relative, to indicate that the host ___location is relative to the ___location where the OpenAPI definition is being served. Variable substitutions will be made when a variable is named in `{`brackets`}`.
327-
<a name="serverDescription"></a>description | `string` | An optional string describing the host designated by the URL.
327+
<a name="serverDescription"></a>description | `string` | An optional string describing the host designated by the URL. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
328328
<a name="serverVariables"></a>variables | [Server Variables Object](#serverVariablesObject) | An object holding variables for substitution in the URL template.
329329

330330
This object can be extended with [Specification Extensions](#specificationExtensions).
@@ -389,8 +389,8 @@ An object representing a Server Variable for server URL template substituion.
389389
Field Name | Type | Description
390390
---|:---:|---
391391
<a name="serverVariableEnum"></a>enum | [`string`] | An enumeration of primitive type values to be used if the substitution options are from a limited set.
392-
<a name="serverVariableDefault"></a>default | `string` | **Required.** The default value to use for substitution if an alternate value is not specified, and MUST be used if an alternative value is _not_ supplied. Unlike the [Schema Object's](#schemaObject) `default`, this value MUST be provided by the consumer.
393-
<a name="serverVariableDescription"></a>description | `string` | An optional description for the server variable.
392+
<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.
393+
<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.
394394

395395
This object can be extended with [Specification Extensions](#specificationExtensions).
396396

@@ -652,7 +652,7 @@ Field Name | Type | Description
652652
---|:---:|---
653653
<a name="pathItemRef"></a>$ref | `string` | Allows for an external definition of this path item. The referenced structure MUST be in the format of a [Path Item Object](#pathItemObject). If there are conflicts between the referenced definition and this Path Item's definition, the behavior is *undefined*.
654654
<a name="pathItemSummary"></a>summary| `string` | An optional, string summary, intended to apply to all operations in this path.
655-
<a name="pathItemDescription"></a>description | `string` | An optional, string description, intended to apply to all operations in this path.
655+
<a name="pathItemDescription"></a>description | `string` | An optional, string description, intended to apply to all operations in this path. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
656656
<a name="pathItemGet"></a>get | [Operation Object](#operationObject) | A definition of a GET operation on this path.
657657
<a name="pathItemPut"></a>put | [Operation Object](#operationObject) | A definition of a PUT operation on this path.
658658
<a name="pathItemPost"></a>post | [Operation Object](#operationObject) | A definition of a POST operation on this path.
@@ -1910,7 +1910,7 @@ X-Rate-Limit-Reset:
19101910
Field Name | Type | Description
19111911
---|:---:|---
19121912
<a name="exampleSummary"></a>summary | `string` | Short description for the example.
1913-
<a name="exampleDescription"></a>description | `string` | Long description for the example.
1913+
<a name="exampleDescription"></a>description | `string` | Long description for the example. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
19141914
<a name="exampleValue"></a>value | Any | Embedded literal example. The `value` field and `externalValue` field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.
19151915
<a name="exampleExternalValue"></a>externalValue | `string` | A URL that points to the literal example. This provides the ability to reference examples that cannot easily be included in JSON or YAML documents. The `value` field and `externalValue` field are mutually exclusive.
19161916

@@ -3357,7 +3357,7 @@ Supported schemes are HTTP authentication, an API key (either as a header or as
33573357
Field Name | Type | Validity | Description
33583358
---|:---:|---|---
33593359
<a name="securitySchemeType"></a>type | `string` | Any | **Required.** The type of the security scheme. Valid values are `"apiKey"`, `"http"`, `"oauth2"`, `"openIdConnect"`.
3360-
<a name="securitySchemeDescription"></a>description | `string` | Any | A short description for security scheme.
3360+
<a name="securitySchemeDescription"></a>description | `string` | Any | A short description for security scheme. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
33613361
<a name="securitySchemeName"></a>name | `string` | `apiKey` | **Required.** The name of the header or query parameter to be used.
33623362
<a name="securitySchemeIn"></a>in | `string` | `apiKey` | **Required.** The ___location of the API key. Valid values are `"query"` or `"header"`.
33633363
<a name="securitySchemeScheme"></a>scheme | `string` | `http` | **Required.** The name of the HTTP Authorization scheme to be used in the [Authorization header as defined in RFC 7235](https://tools.ietf.org/html/rfc7235#section-4.2).

0 commit comments

Comments
 (0)