Skip to content

Commit 0c9be12

Browse files
authored
Better guidance around summary properties
This is the second of two PRs to resolve issues discussed in PR OAI#1009
1 parent 81435ae commit 0c9be12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

versions/3.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ The path itself is still exposed to the documentation viewer but they will not k
657657
Field Name | Type | Description
658658
---|:---:|---
659659
<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*.
660-
<a name="pathItemSummary"></a>summary| `string` | An optional, string summary, intended to apply to all operations in this path.
660+
<a name="pathItemSummary"></a>summary| `string` | A brief explanation that applies to all operations in this path. It may either complement or substitute for a description, though it is usually shorter. Only plain text is supported.
661661
<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.
662662
<a name="pathItemGet"></a>get | [Operation Object](#operationObject) | A definition of a GET operation on this path.
663663
<a name="pathItemPut"></a>put | [Operation Object](#operationObject) | A definition of a PUT operation on this path.
@@ -763,7 +763,7 @@ Describes a single API operation on a path.
763763
Field Name | Type | Description
764764
---|:---:|---
765765
<a name="operationTags"></a>tags | [`string`] | A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
766-
<a name="operationSummary"></a>summary | `string` | A short summary of what the operation does.
766+
<a name="operationSummary"></a>summary | `string` | A brief explanation of what the operation does. It may either complement or substitute for a description, though it is usually shorter. Only plain text is supported.
767767
<a name="operationDescription"></a>description | `string` | A verbose explanation of the operation behavior. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
768768
<a name="operationExternalDocs"></a>externalDocs | [External Documentation Object](#externalDocumentationObject) | Additional external documentation for this operation.
769769
<a name="operationId"></a>operationId | `string` | Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.
@@ -1922,7 +1922,7 @@ X-Rate-Limit-Reset:
19221922
##### Fixed Fields
19231923
Field Name | Type | Description
19241924
---|:---:|---
1925-
<a name="exampleSummary"></a>summary | `string` | Short description for the example.
1925+
<a name="exampleSummary"></a>summary | `string` | A brief explanation of the given example. It may either complement or substitute for a description, though it is usually shorter. Only plain text is supported.
19261926
<a name="exampleDescription"></a>description | `string` | Long description for the example. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
19271927
<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.
19281928
<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.

0 commit comments

Comments
 (0)