Skip to content

Commit ccf4651

Browse files
authored
Prefer description when referring to an OAS document
Usage of description and definition to refer to an OAS document was mixed. This makes it more consistent, and prefers "description" of the service, since as a possible-truth it is more broad than "definition," which suggests an actual truth. (note: definition does still occur in the doc, but those refer to specific parts of the document rather than the document as a whole)
1 parent d4d3e4f commit ccf4651

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

versions/3.0.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ This document is licensed under [The Apache License, Version 2.0](http://www.apa
88

99
## Introduction
1010

11-
The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection. When properly defined, a consumer can understand and interact with the remote service with a minimal amount of implementation logic.
11+
The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection. When properly described, a consumer can understand and interact with the remote service with a minimal amount of implementation logic.
1212

13-
An OpenAPI definition can then be used by documentation generation tools to display the API, code generation tools to generate servers and clients in various programming languages, testing tools and many other use cases.
13+
An OpenAPI description can then be used by documentation generation tools to display the API, code generation tools to generate servers and clients in various programming languages, testing tools and many other use cases.
1414

1515
## Table of Contents
1616
<!-- TOC depthFrom:1 depthTo:3 withLinks:1 updateOnSave:1 orderedList:0 -->
1717

1818
- [Definitions](#definitions)
19-
- [OpenAPI Definition](#oasDefinition)
19+
- [OpenAPI Description](#oasDescription)
2020
- [Path Templating](#pathTemplating)
2121
- [Media Types](#mediaTypes)
2222
- [HTTP Status Codes](#httpCodes)
@@ -66,8 +66,8 @@ An OpenAPI definition can then be used by documentation generation tools to disp
6666

6767
## Definitions
6868

69-
##### <a name="oasDefinition"></a>OpenAPI Definition
70-
A document or set of documents which defines an API. An OpenAPI definition uses and conforms to the OpenAPI Specification.
69+
##### <a name="oasDescription"></a>OpenAPI Description
70+
A document or set of documents that describe an API. An OpenAPI description uses and conforms to the OpenAPI Specification.
7171

7272
##### <a name="pathTemplating"></a>Path Templating
7373
Path templating refers to the usage of curly braces ({}) to mark a section of a URL path as replaceable using path parameters.
@@ -103,7 +103,7 @@ The `major`.`minor` portion of the semver (for example `3.0`) SHALL designate th
103103

104104
Subsequent minor version releases of the OpenAPI Specification (incrementing the `minor` version number) SHOULD NOT interfere with tooling developed to a lower minor version and same major version. Thus a hypothetical `3.1.0` specification SHOULD be usable with tooling designed for `3.0.0`.
105105

106-
An OpenAPI definition compatible with OAS 3.\*.\* contains a required [`openapi`](#oasVersion) field which designates the semantic version of the OAS that it uses. (OAS 2.0 definition documents contain a top-level version field named [`swagger`](http://swagger.io/specification/#swaggerObject) and value `"2.0"`.)
106+
An OpenAPI description compatible with OAS 3.\*.\* contains a required [`openapi`](#oasVersion) field which designates the semantic version of the OAS that it uses. (OAS 2.0 description documents contain a top-level version field named [`swagger`](http://swagger.io/specification/#swaggerObject) and value `"2.0"`.)
107107

108108
### Format
109109

@@ -131,11 +131,11 @@ In order to preserve the ability to round-trip between YAML and JSON formats, YA
131131

132132
### <a name="documentStructure"></a>Document Structure
133133

134-
An OpenAPI definition MAY be made up of a single document.
135-
However, parts of the definitions MAY be split into separate documents, at the discretion of the user.
134+
An OpenAPI description MAY be made up of a single document.
135+
However, parts of the description MAY be split into separate documents, at the discretion of the user.
136136
This is applicable for `$ref` fields in the specification as follows from the [JSON Schema](http://json-schema.org) definitions.
137137

138-
It is RECOMMENDED that the root OpenAPI definition document be named: `openapi.json` or `openapi.yaml`.
138+
It is RECOMMENDED that the root OpenAPI description document be named: `openapi.json` or `openapi.yaml`.
139139

140140
### <a name="dataTypes"></a>Data Types
141141

@@ -183,13 +183,13 @@ In the following description, if a field is not explicitly **REQUIRED** or descr
183183

184184
#### <a name="oasObject"></a>OpenAPI Object
185185

186-
This is the root document object of the [OpenAPI definition](#oasDefinition).
186+
This is the root document object of the [OpenAPI description](#oasDescription).
187187

188188
##### Fixed Fields
189189

190190
Field Name | Type | Description
191191
---|:---:|---
192-
<a name="oasVersion"></a>openapi | `string` | **REQUIRED**. This string MUST be the [semantic version number](http://semver.org/spec/v2.0.0.html) of the [OpenAPI Specification version](#versions) that the OpenAPI definition uses. The `openapi` field SHOULD be used by tooling specifications and clients to interpret the OpenAPI definition. This is *not* related to the API [`info.version`](#infoVersion) string.
192+
<a name="oasVersion"></a>openapi | `string` | **REQUIRED**. This string MUST be the [semantic version number](http://semver.org/spec/v2.0.0.html) of the [OpenAPI Specification version](#versions) that the OpenAPI description uses. The `openapi` field SHOULD be used by tooling specifications and clients to interpret the OpenAPI description. This is *not* related to the API [`info.version`](#infoVersion) string.
193193
<a name="oasInfo"></a>info | [Info Object](#infoObject) | **REQUIRED**. Provides metadata about the API. The metadata can be used by the clients if needed.
194194
<a name="oasServers"></a>servers | [[Server Object](#serverObject)] | An array of Server Objects, which provide connectivity information to a target server. If the `servers` property is not provided, or is an empty array, the default value would be a [Server Object](#serverObject) with a [url](#serverUrl) value of `/`.
195195
<a name="oasPaths"></a>paths | [Paths Object](#pathsObject) | **REQUIRED**. The available paths and operations for the API.
@@ -214,7 +214,7 @@ Field Name | Type | Description
214214
<a name="infoTermsOfService"></a>termsOfService | `string` | A URL to the Terms of Service for the API. MUST be in the format of a URL.
215215
<a name="infoContact"></a>contact | [Contact Object](#contactObject) | The contact information for the exposed API.
216216
<a name="infoLicense"></a>license | [License Object](#licenseObject) | The license information for the exposed API.
217-
<a name="infoVersion"></a>version | `string` | **REQUIRED**. The version of the API definition (which is distinct from the [OpenAPI Specification version](#oasVersion) or the API implementation version).
217+
<a name="infoVersion"></a>version | `string` | **REQUIRED**. The version of the API description (which is distinct from the [OpenAPI Specification version](#oasVersion) or the API implementation version).
218218

219219

220220
This object can be extended with [Specification Extensions](#specificationExtensions).
@@ -318,7 +318,7 @@ An object representing a Server.
318318

319319
Field Name | Type | Description
320320
---|:---:|---
321-
<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`}`.
321+
<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 description is being served. Variable substitutions will be made when a variable is named in `{`brackets`}`.
322322
<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.
323323
<a name="serverVariables"></a>variables | Map[`string`, [Server Variable Object](#serverVariableObject)] | A map between a variable name and its value. The value is used for substitution in the server's URL template.
324324

0 commit comments

Comments
 (0)