You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versions/1.2.md
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -136,15 +136,15 @@ If the [`type`](#dataTypeType) field is included it MUST NOT have the value `arr
136
136
##### 4.3.4.1 Object Examples
137
137
138
138
For a primitive type:
139
-
```js
139
+
```json
140
140
{
141
141
"type": "string"
142
142
}
143
143
```
144
144
145
145
For a complex type (model):
146
146
147
-
```js
147
+
```json
148
148
{
149
149
"$ref": "Pet"
150
150
}
@@ -174,7 +174,7 @@ Field Name | Type | Description
174
174
175
175
#### 5.1.1 Object Example
176
176
177
-
```js
177
+
```json
178
178
{
179
179
"apiVersion": "1.0.0",
180
180
"swaggerVersion": "1.2",
@@ -247,7 +247,7 @@ Field Name | Type | Description
247
247
248
248
##### 5.1.2.1 Object Example:
249
249
250
-
```js
250
+
```json
251
251
{
252
252
"path": "/pets",
253
253
"description": "Operations about pets."
@@ -268,7 +268,7 @@ Field Name | Type | Description
268
268
269
269
##### 5.1.3.1 Object Example:
270
270
271
-
```js
271
+
```json
272
272
{
273
273
"title": "Swagger Sample App",
274
274
"description": "This is a sample server Petstore server.",
@@ -300,7 +300,7 @@ Field Name | Type | Description
300
300
<aname="authorizationsAuthorizationName"/>{Authorization Name} | [Authorization Object](#515-authorization-object) | A new authorization definition. The name given to the {Authorization Name} is a friendly name that should be used when referring to the authorization scheme. In many cases, the {Authorization Name} used is the same as its type, but it can be anything.
301
301
302
302
##### 5.1.4.1 Object Example:
303
-
```js
303
+
```json
304
304
{
305
305
"oauth2": {
306
306
"type": "oauth2",
@@ -397,7 +397,7 @@ Field Name | Type | Description
397
397
<aname="scope"/>description | `string` | *Recommended.* A short description of the scope.
398
398
399
399
##### 5.1.6.1 Object Example:
400
-
```js
400
+
```json
401
401
{
402
402
"scope": "email",
403
403
"description": "Access to your email address"
@@ -415,7 +415,7 @@ Field Name | Type | Description
415
415
<aname="grantTypesAuthorizationCode"/>authorization_code | [Authorization Code Object](#519-authorization-code-object) | The Authorization Code Grant flow definition.
416
416
417
417
##### 5.1.7.1 Object Example:
418
-
```js
418
+
```json
419
419
{
420
420
"implicit": {
421
421
"loginEndpoint": {
@@ -446,7 +446,7 @@ Field Name | Type | Description
446
446
<aname="implicitTokenName"/>tokenName | `string` | An optional alternative name to standard "access_token" OAuth2 parameter.
@@ -543,7 +543,7 @@ Field Name | Type | Description
543
543
<aname="adAuthorizations"/>authorizations | [Authorizations Object](#5210-authorizations-object) | A list of authorizations schemes *required* for the operations listed in this API declaration. Individual operations may override this setting. If there are multiple authorization schemes described here, it means they're **all** applied.
544
544
545
545
#### 5.2.1 Object Example
546
-
```js
546
+
```json
547
547
{
548
548
"apiVersion": "1.0.0",
549
549
"swaggerVersion": "1.2",
@@ -702,7 +702,7 @@ Field Name | Type | Description
702
702
703
703
##### 5.2.2.1 Object Example:
704
704
705
-
```js
705
+
```json
706
706
{
707
707
"path": "/pet",
708
708
"operations": [
@@ -799,7 +799,7 @@ Field Name | Type | Description
799
799
800
800
##### 5.2.3.1 Object Example
801
801
802
-
````js
802
+
````json
803
803
{
804
804
"method": "GET",
805
805
"summary": "Find pet by ID",
@@ -869,7 +869,7 @@ Field Name | Type | Description
869
869
870
870
##### 5.2.4.2 Object Example
871
871
872
-
```js
872
+
```json
873
873
{
874
874
"name": "body",
875
875
"description": "Pet object that needs to be updated in the store",
@@ -891,7 +891,7 @@ Field Name | Type | Description |
891
891
892
892
##### 5.2.5.1 Object Example
893
893
894
-
```js
894
+
```json
895
895
{
896
896
"code": 404,
897
897
"message": "no project found",
@@ -919,7 +919,7 @@ Field Name | Type | Description
919
919
920
920
##### 5.2.6.1Object Example
921
921
922
-
```js
922
+
```json
923
923
{
924
924
"Category": {
925
925
"id": "Category",
@@ -953,7 +953,7 @@ Field Name | Type | Description
953
953
954
954
##### 5.2.7.1Object Example
955
955
956
-
```js
956
+
```json
957
957
{
958
958
"id": "Order",
959
959
"properties": {
@@ -1040,7 +1040,7 @@ Field Name | Type | Description
1040
1040
<a name="propertiesPropertyName"/>{Property Name} | [Property Object](#529-property-object) |Anewmodel property definition. Note the actual name of the field is the name you're giving your property. For example, "id", "name", "age".
1041
1041
1042
1042
##### 5.2.8.1 Object Example
1043
-
```js
1043
+
```json
1044
1044
{
1045
1045
"id": {
1046
1046
"type": "integer",
@@ -1116,7 +1116,7 @@ Field Name | Type | Description
1116
1116
<a name="adAuthorizationsAuthorizationName"/>{Authorization Name} | * | The authorization scheme to be used. The name given to the {Authorization Name} MUST be a friendly name that was given to an authorization scheme in the Resource Listing's [authorizations](#rlAuthorizations). If the friendly name describes an OAuth2 security scheme, the value should be of type \[[Scope Object](#5211-scope-object)\] (but may be an empty array to denote 'no scopes'). For all other authorization scheme types, the value MUST be an empty array.
1117
1117
1118
1118
##### 5.2.10Object Example:
1119
-
```js
1119
+
```json
1120
1120
{
1121
1121
"oauth2": [
1122
1122
{
@@ -1140,7 +1140,7 @@ Field Name | Type | Description
1140
1140
<a name="scope"/>description | `string` | *Recommended.* A short description of the scope.
0 commit comments