Skip to content

Commit 9d98629

Browse files
committed
Merge pull request #86 from maxlinc/test_fixes
Test fixes
2 parents ed02b49 + 1b86236 commit 9d98629

File tree

4 files changed

+63
-65
lines changed

4 files changed

+63
-65
lines changed

examples/mads/petstore-expanded.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"termsOfService": "http://helloreverb.com/terms/",
88
"contact": {
99
"name": "Wordnik API Team",
10-
"email": "foo@bar.baz",
10+
"email": "foo@example.com",
1111
"url": "http://madskristensen.net"
1212
},
1313
"license": {
@@ -224,4 +224,4 @@
224224
}
225225
}
226226
}
227-
}
227+
}

examples/wordnik/petstore-expanded.yaml

+7-9
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ info:
66
termsOfService: http://helloreverb.com/terms/
77
contact:
88
name: Wordnik API Team
9-
email: foo@bar.baz
9+
email: foo@example.com
1010
url: http://madskristensen.net
1111
license:
12-
type: MIT
12+
name: MIT
1313
url: http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
14-
host: http://petstore.swagger.wordnik.com
14+
host: petstore.swagger.wordnik.com
1515
basePath: /api
1616
schemes:
1717
- http
@@ -87,9 +87,8 @@ paths:
8787
in: path
8888
description: ID of pet to fetch
8989
required: true
90-
schema:
91-
type: integer
92-
format: int64
90+
type: integer
91+
format: int64
9392
responses:
9493
200:
9594
description: pet response
@@ -109,9 +108,8 @@ paths:
109108
in: path
110109
description: ID of pet to delete
111110
required: true
112-
schema:
113-
type: integer
114-
format: int64
111+
type: integer
112+
format: int64
115113
responses:
116114
204:
117115
description: pet deleted

examples/wordnik/petstore.yaml

+53-53
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,100 @@
11
swagger: 2.0
2-
info:
2+
info:
33
version: 1.0.0
44
title: Swagger Petstore
5+
license:
6+
name: MIT
57
host: petstore.swagger.wordnik.com
68
basePath: /v1
7-
license:
8-
name: MIT
9-
schemes:
9+
schemes:
1010
- http
11-
consumes:
11+
consumes:
1212
- application/json
13-
produces:
13+
produces:
1414
- application/json
15-
paths:
16-
/pets:
17-
get:
15+
paths:
16+
/pets:
17+
get:
1818
summary: List all pets
1919
operationId: listPets
20-
tags:
20+
tags:
2121
- pets
22-
parameters:
22+
parameters:
2323
- name: limit
2424
in: query
2525
description: How many items to return at one time (max 100)
2626
required: false
2727
type: integer
2828
format: int32
29-
responses:
30-
200:
29+
responses:
30+
200:
3131
description: An paged array of pets
32-
headers:
33-
- x-next:
32+
headers:
33+
- x-next:
3434
type: string
3535
description: A link to the next page of responses
36-
schema:
36+
schema:
3737
$ref: Pets
38-
default:
38+
default:
3939
description: unexpected error
40-
schema:
40+
schema:
4141
$ref: Error
42-
post:
43-
summary: Create a pet
44-
operationId: createPets
45-
tags:
46-
- pets
47-
responses:
48-
201:
49-
description: Null response
50-
default:
51-
description: unexpected error
52-
schema:
53-
$ref: Error
54-
/pets/{petId}:
55-
get:
42+
post:
43+
summary: Create a pet
44+
operationId: createPets
45+
tags:
46+
- pets
47+
responses:
48+
201:
49+
description: Null response
50+
default:
51+
description: unexpected error
52+
schema:
53+
$ref: Error
54+
/pets/{petId}:
55+
get:
5656
summary: Info for a specific pet
5757
operationId: showPetById
58-
tags:
58+
tags:
5959
- pets
60-
parameters:
60+
parameters:
6161
- name: petId
6262
in: path
6363
description: The id of the pet to retrieve
6464
type: string
65-
responses:
66-
200:
65+
responses:
66+
200:
6767
description: Expected response to a valid request
68-
schema:
68+
schema:
6969
$ref: Pets
70-
default:
70+
default:
7171
description: unexpected error
72-
schema:
72+
schema:
7373
$ref: Error
74-
definitions:
75-
Pet:
76-
required:
74+
definitions:
75+
Pet:
76+
required:
7777
- id
7878
- name
79-
properties:
80-
id:
79+
properties:
80+
id:
8181
type: integer
8282
format: int64
83-
name:
83+
name:
8484
type: string
85-
tag:
85+
tag:
8686
type: string
87-
Pets:
87+
Pets:
8888
type: array
89-
items:
89+
items:
9090
$ref: Pet
91-
Error:
92-
required:
91+
Error:
92+
required:
9393
- code
9494
- message
95-
properties:
96-
code:
95+
properties:
96+
code:
9797
type: integer
9898
format: int32
99-
message:
99+
message:
100100
type: string

schemas/v2.0/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
"maximum": { "$ref": "http://json-schema.org/draft-04/schema#/properties/maximum" },
302302
"exclusiveMaximum": { "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum" },
303303
"minimum": { "$ref": "http://json-schema.org/draft-04/schema#/properties/minimum" },
304-
"exclusiveMinimum": { "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMininum" },
304+
"exclusiveMinimum": { "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum" },
305305
"maxLength": { "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" },
306306
"minLength": { "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" },
307307
"pattern": { "$ref": "http://json-schema.org/draft-04/schema#/properties/pattern" },

0 commit comments

Comments
 (0)