Skip to content

Commit

Permalink
Add test for ref transforms and bump minor version.
Browse files Browse the repository at this point in the history
  • Loading branch information
fotinakis committed Aug 28, 2015
1 parent b21c1c5 commit b1bbd61
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ Throw a ★ on it! :)

## Release notes

* v1.2.0: Improved support for `$ref` Path Item Object parameters.
* v1.1.3: Rename tags directive to tag for consistency.
* v1.1.2: Bugfix for security definition support.
* v1.1.1: Bugfix for tags node support.
Expand Down
2 changes: 1 addition & 1 deletion lib/swagger/blocks/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Swagger
module Blocks
VERSION = '1.1.3'
VERSION = '1.2.0'
end
end
2 changes: 1 addition & 1 deletion spec/lib/swagger_v2_api_declaration.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"200": {
"description": "pet response",
"schema": {
"$ref": "#/definitions/Pet"
"$ref": "#/parameters/Pet"
}
},
"default": {
Expand Down
3 changes: 2 additions & 1 deletion spec/lib/swagger_v2_blocks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ class PetControllerV2
response 200 do
key :description, 'pet response'
schema do
key :'$ref', :Pet
# Wrong form here, but checks that #/ strings are not transformed.
key :'$ref', '#/parameters/Pet'
end
end
response :default do
Expand Down

0 comments on commit b1bbd61

Please sign in to comment.