Skip to content

Commit 07cce43

Browse files
committed
Merge pull request OAI#439 from tkatkov/master
fix json separate example, replacing yaml with json
2 parents bd9ac4f + 72360a2 commit 07cce43

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

examples/v2.0/json/petstore-separate/spec/NewPet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "object",
33
"allOf": [
44
{
5-
"$ref": "Pet.yaml"
5+
"$ref": "Pet.json"
66
},
77
{
88
"required": [

examples/v2.0/json/petstore-separate/spec/swagger.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"operationId": "findPets",
3434
"parameters": [
3535
{
36-
"$ref": "parameters.yaml#/tagsParam"
36+
"$ref": "parameters.json#/tagsParam"
3737
},
3838
{
39-
"$ref": "parameters.yaml#/limitsParam"
39+
"$ref": "parameters.json#/limitsParam"
4040
}
4141
],
4242
"responses": {
@@ -45,14 +45,14 @@
4545
"schema": {
4646
"type": "array",
4747
"items": {
48-
"$ref": "Pet.yaml"
48+
"$ref": "Pet.json"
4949
}
5050
}
5151
},
5252
"default": {
5353
"description": "unexpected error",
5454
"schema": {
55-
"$ref": "../common/Error.yaml"
55+
"$ref": "../common/Error.json"
5656
}
5757
}
5858
}
@@ -67,21 +67,21 @@
6767
"description": "Pet to add to the store",
6868
"required": true,
6969
"schema": {
70-
"$ref": "NewPet.yaml"
70+
"$ref": "NewPet.json"
7171
}
7272
}
7373
],
7474
"responses": {
7575
"200": {
7676
"description": "pet response",
7777
"schema": {
78-
"$ref": "Pet.yaml"
78+
"$ref": "Pet.json"
7979
}
8080
},
8181
"default": {
8282
"description": "unexpected error",
8383
"schema": {
84-
"$ref": "../common/Error.yaml"
84+
"$ref": "../common/Error.json"
8585
}
8686
}
8787
}
@@ -105,13 +105,13 @@
105105
"200": {
106106
"description": "pet response",
107107
"schema": {
108-
"$ref": "Pet.yaml"
108+
"$ref": "Pet.json"
109109
}
110110
},
111111
"default": {
112112
"description": "unexpected error",
113113
"schema": {
114-
"$ref": "../common/Error.yaml"
114+
"$ref": "../common/Error.json"
115115
}
116116
}
117117
}
@@ -136,7 +136,7 @@
136136
"default": {
137137
"description": "unexpected error",
138138
"schema": {
139-
"$ref": "../common/Error.yaml"
139+
"$ref": "../common/Error.json"
140140
}
141141
}
142142
}

0 commit comments

Comments
 (0)