Skip to content

Commit 6075cfe

Browse files
authored
Merge pull request OAI#939 from RobDolinMS/patch-10
Update "swagger" to more generic
2 parents d7e0af5 + affac83 commit 6075cfe

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

versions/3.0.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The OpenAPI Specification (OAS) is a project used to describe and document RESTf
1212

1313

1414
The OpenAPI Specification defines a set of files required to describe such an API.
15-
These files can then be used by the Swagger-UI project to display the API and Swagger-Codegen to generate clients in various programming languages.
15+
These files can then be used by documentation generation tools to display the API and code generation tools to generate clients in various programming languages.
1616

1717
Additional utilities can also take advantage of the resulting files, such as testing tools.
1818

@@ -206,7 +206,7 @@ In subsequent versions of the OpenAPI Specification, care will be given such tha
206206
#### <a name="infoObject"></a>Info Object
207207

208208
The object provides metadata about the API.
209-
The metadata can be used by the clients if needed, and can be presented in the Swagger-UI for convenience.
209+
The metadata can be used by the clients if needed, and can be presented in editing or documentation generation tools for convenience.
210210

211211
##### Fixed Fields
212212

@@ -226,13 +226,13 @@ This object can be extended with [Specification Extensions](#specificationExtens
226226

227227
```json
228228
{
229-
"title": "Swagger Sample App",
229+
"title": "Sample Pet Store App",
230230
"description": "This is a sample server for a pet store.",
231-
"termsOfService": "http://swagger.io/terms/",
231+
"termsOfService": "http://example.com/terms/",
232232
"contact": {
233233
"name": "API Support",
234-
"url": "http://www.swagger.io/support",
235-
"email": "support@swagger.io"
234+
"url": "http://www.example.com/support",
235+
"email": "support@example.com"
236236
},
237237
"license": {
238238
"name": "Apache 2.0",
@@ -243,13 +243,13 @@ This object can be extended with [Specification Extensions](#specificationExtens
243243
```
244244

245245
```yaml
246-
title: Swagger Sample App
246+
title: Sample Pet Store App
247247
description: This is a sample server for a pet store.
248-
termsOfService: http://swagger.io/terms/
248+
termsOfService: http://example.com/terms/
249249
contact:
250250
name: API Support
251-
url: http://www.swagger.io/support
252-
email: support@swagger.io
251+
url: http://www.example.com/support
252+
email: support@example.com
253253
license:
254254
name: Apache 2.0
255255
url: http://www.apache.org/licenses/LICENSE-2.0.html
@@ -275,15 +275,15 @@ This object can be extended with [Specification Extensions](#specificationExtens
275275
```json
276276
{
277277
"name": "API Support",
278-
"url": "http://www.swagger.io/support",
279-
"email": "support@swagger.io"
278+
"url": "http://www.example.com/support",
279+
"email": "support@example.com"
280280
}
281281
```
282282

283283
```yaml
284284
name: API Support
285-
url: http://www.swagger.io/support
286-
email: support@swagger.io
285+
url: http://www.example.com/support
286+
email: support@example.com
287287
```
288288

289289
#### <a name="licenseObject"></a>License Object
@@ -579,7 +579,7 @@ Describes a single API operation on a path.
579579
Field Name | Type | Description
580580
---|:---:|---
581581
<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.
582-
<a name="operationSummary"></a>summary | `string` | A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.
582+
<a name="operationSummary"></a>summary | `string` | A short summary of what the operation does. For maximum readability in editing or documentation generation tools, this field SHOULD be less than 120 characters.
583583
<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.
584584
<a name="operationExternalDocs"></a>externalDocs | [External Documentation Object](#externalDocumentationObject) | Additional external documentation for this operation.
585585
<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.
@@ -720,13 +720,13 @@ This object can be extended with [Specification Extensions](#specificationExtens
720720
```json
721721
{
722722
"description": "Find more info here",
723-
"url": "https://swagger.io"
723+
"url": "https://example.com"
724724
}
725725
```
726726

727727
```yaml
728728
description: Find more info here
729-
url: https://swagger.io
729+
url: https://example.com
730730
```
731731

732732
#### <a name="parameterObject"></a>Parameter Object
@@ -2829,7 +2829,7 @@ In this example, a full model definition is shown.
28292829
"name": {
28302830
"type": "string",
28312831
"xml": {
2832-
"namespace": "http://swagger.io/schema/sample",
2832+
"namespace": "http://example.com/schema/sample",
28332833
"prefix": "sample"
28342834
}
28352835
}
@@ -2850,13 +2850,13 @@ Person:
28502850
name:
28512851
type: string
28522852
xml:
2853-
namespace: http://swagger.io/schema/sample
2853+
namespace: http://example.com/schema/sample
28542854
prefix: sample
28552855
```
28562856

28572857
```xml
28582858
<Person id="123">
2859-
<sample:name xmlns:sample="http://swagger.io/schema/sample">example</sample:name>
2859+
<sample:name xmlns:sample="http://example.com/schema/sample">example</sample:name>
28602860
</Person>
28612861
```
28622862

@@ -3261,7 +3261,7 @@ Field Pattern | Type | Description
32613261
"type": "oauth2",
32623262
"flow": {
32633263
"implicit": {
3264-
"authorizationUrl": "http://swagger.io/api/oauth/dialog",
3264+
"authorizationUrl": "http://example.com/api/oauth/dialog",
32653265
"scopes": {
32663266
"write:pets": "modify pets in your account",
32673267
"read:pets": "read your pets"
@@ -3281,7 +3281,7 @@ petstore_auth:
32813281
type: oauth2
32823282
flow:
32833283
implicit:
3284-
authorizationUrl: http://swagger.io/api/oauth/dialog
3284+
authorizationUrl: http://example.com/api/oauth/dialog
32853285
scopes:
32863286
write:pets: modify pets in your account
32873287
read:pets: read your pets
@@ -3361,7 +3361,7 @@ bearerFormat: JWT
33613361
"type": "oauth2",
33623362
"flow": {
33633363
"implicit": {
3364-
"authorizationUrl": "https://swagger.io/api/oauth/dialog",
3364+
"authorizationUrl": "https://example.com/api/oauth/dialog",
33653365
"scopes": {
33663366
"write:pets": "modify pets in your account",
33673367
"read:pets": "read your pets"
@@ -3375,7 +3375,7 @@ bearerFormat: JWT
33753375
type: oauth2
33763376
flow:
33773377
implicit:
3378-
authorizationUrl: https://swagger.io/api/oauth/dialog
3378+
authorizationUrl: https://example.com/api/oauth/dialog
33793379
scopes:
33803380
write:pets: modify pets in your account
33813381
read:pets: read your pets
@@ -3416,15 +3416,15 @@ This object can be extended with [Specification Extensions](#specificationExtens
34163416
"type": "oauth2",
34173417
"flow": {
34183418
"implicit": {
3419-
"authorizationUrl": "https://swagger.io/api/oauth/dialog",
3419+
"authorizationUrl": "https://example.com/api/oauth/dialog",
34203420
"scopes": {
34213421
"write:pets": "modify pets in your account",
34223422
"read:pets": "read your pets"
34233423
}
34243424
},
34253425
"authorizationCode": {
3426-
"authorizationUrl": "https://swagger.io/api/oauth/dialog",
3427-
"tokenUrl": "https://swagger.io/api/oauth/token",
3426+
"authorizationUrl": "https://example.com/api/oauth/dialog",
3427+
"tokenUrl": "https://example.com/api/oauth/token",
34283428
"scopes": {
34293429
"write:pets": "modify pets in your account",
34303430
"read:pets": "read your pets"
@@ -3438,13 +3438,13 @@ This object can be extended with [Specification Extensions](#specificationExtens
34383438
type: oauth2
34393439
flow:
34403440
implicit:
3441-
authorizationUrl: https://swagger.io/api/oauth/dialog
3441+
authorizationUrl: https://example.com/api/oauth/dialog
34423442
scopes:
34433443
write:pets: modify pets in your account
34443444
read:pets: read your pets
34453445
authorizationCode:
3446-
authorizationUrl: https://swagger.io/api/oauth/dialog
3447-
tokenUrl: https://swagger.io/api/oauth/token
3446+
authorizationUrl: https://example.com/api/oauth/dialog
3447+
tokenUrl: https://example.com/api/oauth/token
34483448
scopes:
34493449
write:pets: modify pets in your account
34503450
read:pets: read your pets

0 commit comments

Comments
 (0)