Skip to content

Commit 19f8cfd

Browse files
author
Paŭlo Ebermann
committed
Issue #577: put the interfaces object into the components object from #633.
Also, rename it to "Interfaces Definitions Object".
1 parent 8e849d6 commit 19f8cfd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

versions/3.0.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ Field Pattern | Type | Description
269269
<a name="parametersDefinitionsObject"></a> | [Parameters Definitions Object](#parametersDefinitionsObject) | An object to hold parameters to be reused across operations. Parameter definitions can be referenced to the ones defined here.
270270
<a name="responseHeadersDefinitionsObject"></a> | [Response Headers Definitions Object](#responseHeadersDefinitionsObject) | Response headers to reuse across the specification.
271271
<a name="securityDefinitionsObject"></a> | [Security Definitions Object](#securityDefinitionsObject) | Security definitions to reuse across the specification.
272+
<a name="componentsInterfaces"></a> interfaces | [Interface Definitions Object](#interfacesDefinitionsObject) | Interface definitions to reuse in paths or URI properties in schemas.
272273

273274

274275
#### <a name="pathsObject"></a>Paths Object
@@ -436,7 +437,7 @@ This example refers to the pet-list example in the [Interface object](#interface
436437

437438
```js
438439
{
439-
"$ref": "#/interfaces/pet-list",
440+
"$ref": "#/components/interfaces/pet-list",
440441
"parameters": [
441442
{
442443
"name": "id",
@@ -454,7 +455,7 @@ This example refers to the pet-list example in the [Interface object](#interface
454455
```
455456

456457
```yaml
457-
$ref: '#/interfaces/pet-list'
458+
$ref: '#/components/interfaces/pet-list'
458459
parameters:
459460
- name: id
460461
in: path
@@ -466,9 +467,9 @@ parameters:
466467
collectionFormat: csv
467468
```
468469

469-
#### <a name="interfacesObject"></a> Interfaces Object
470+
#### <a name="interfacesDefinitionsObject"></a> Interfaces Definitions Object
470471

471-
The Interfaces objects defines named interfaces which can then be implemented by [path items](#pathItemObject) declared in the [Paths object](#pathsObject) or by URI properties in schemas.
472+
The Interfaces definitions object defines named interfaces which can then be implemented by [path items](#pathItemObject) declared in the [Paths object](#pathsObject) or by URI properties in schemas.
472473

473474
##### Patterned Fields
474475

0 commit comments

Comments
 (0)