Skip to content

Commit

Permalink
Merge pull request OAI#123 from raymondfeng/master
Browse files Browse the repository at this point in the history
Fix type references
  • Loading branch information
fehguy committed Aug 29, 2014
2 parents e581516 + ed58186 commit 3abb66e
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
12 changes: 6 additions & 6 deletions examples/v2.0/json/petstore-expanded.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/schemas/pet"
"$ref": "#/definitions/pet"
}
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand All @@ -89,21 +89,21 @@
"description": "Pet to add to the store",
"required": true,
"schema": {
"$ref": "#/schemas/newPet"
"$ref": "#/definitions/newPet"
}
}
],
"responses": {
"200": {
"description": "pet response",
"schema": {
"$ref": "#/schemas/pet"
"$ref": "#/definitions/pet"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand Down Expand Up @@ -164,7 +164,7 @@
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions examples/v2.0/json/petstore-simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/schemas/pet"
"$ref": "#/definitions/pet"
}
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand All @@ -85,21 +85,21 @@
"description": "Pet to add to the store",
"required": true,
"schema": {
"$ref": "#/schemas/petInput"
"$ref": "#/definitions/petInput"
}
}
],
"responses": {
"200": {
"description": "pet response",
"schema": {
"$ref": "#/schemas/pet"
"$ref": "#/definitions/pet"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand Down Expand Up @@ -135,7 +135,7 @@
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand All @@ -160,7 +160,7 @@
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions examples/v2.0/json/petstore-with-external-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/schemas/pet"
"$ref": "#/definitions/pet"
}
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand All @@ -97,21 +97,21 @@
"description": "Pet to add to the store",
"required": true,
"schema": {
"$ref": "#/schemas/newPet"
"$ref": "#/definitions/newPet"
}
}
],
"responses": {
"200": {
"description": "pet response",
"schema": {
"$ref": "#/schemas/pet"
"$ref": "#/definitions/pet"
}
},
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand Down Expand Up @@ -172,7 +172,7 @@
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/schemas/errorModel"
"$ref": "#/definitions/errorModel"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/v2.0/json/petstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/models/Pet"
"$ref": "#/definitions/Pet"
}
},
"headers": [{
Expand All @@ -40,7 +40,7 @@
"default": {
"description": "unexpected error",
"schema": {
"$ref": "#/models/Error"
"$ref": "#/definitions/Error"
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions examples/v2.0/yaml/petstore-expanded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ paths:
type: array
items:
Pet:
$ref: '#/models/Pet'
$ref: '#/definitions/Pet'
default:
description: unexpected error
schema:
Error:
$ref: '#/models/Error'
$ref: '#/definitions/Error'
post:
description: Creates a new pet in the store. Duplicates are allowed
operationId: addPet
Expand All @@ -66,18 +66,18 @@ paths:
required: true
schema:
NewPet:
$ref: '#/models/NewPet'
$ref: '#/definitions/NewPet'
responses:
200:
description: pet response
schema:
Pet:
$ref: '#/models/Pet'
$ref: '#/definitions/Pet'
default:
description: unexpected error
schema:
Error:
$ref: '#/models/Error'
$ref: '#/definitions/Error'
/pets/{id}:
get:
description: Returns a user based on a single ID, if the user does not have access to the pet
Expand All @@ -94,12 +94,12 @@ paths:
description: pet response
schema:
Pet:
$ref: '#/models/Pet'
$ref: '#/definitions/Pet'
default:
description: unexpected error
schema:
Error:
$ref: '#/models/Error'
$ref: '#/definitions/Error'
delete:
description: deletes a single pet based on the ID supplied
operationId: deletePet
Expand All @@ -117,7 +117,7 @@ paths:
description: unexpected error
schema:
Error:
$ref: '#/models/Error'
$ref: '#/definitions/Error'
definitions:
Pet:
required:
Expand All @@ -134,7 +134,7 @@ definitions:
NewPet:
allOf:
- Pet:
$ref: '#/models/Pet'
$ref: '#/definitions/Pet'
- required:
- name
properties:
Expand Down

0 comments on commit 3abb66e

Please sign in to comment.