swagger-blocks 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/swagger/blocks.rb +1 -1
- data/lib/swagger/blocks/version.rb +1 -1
- data/spec/lib/swagger_v2_api_declaration.json +1 -1
- data/spec/lib/swagger_v2_blocks_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1f287d8e209522490c3d90b62948e11902c2926
|
4
|
+
data.tar.gz: 0d22ea28d1a2370ae8d896709b4ea52f3e66c221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aacf4e7ca9eb945bda88b89d3bdf4869130a63f5667caf305efcefd4658b973faa112e695d24aa43942ad68843db120c6399817f8598a16688dcfd96cd14dcaa
|
7
|
+
data.tar.gz: ce5b0633b5e74fe5cd6a2e4971d0086ee5089d8b7b266677ed42c16e1c3754eb3562ead1e4b1a892979b25bde6d72339b900472766f6d5cf87765d3a790ba4ac
|
data/README.md
CHANGED
@@ -413,6 +413,7 @@ Throw a ★ on it! :)
|
|
413
413
|
|
414
414
|
## Release notes
|
415
415
|
|
416
|
+
* v1.3.4: Fix support for fully-qualified URIs in `$ref` values.
|
416
417
|
* v1.3.3: Bugfix to allow `parameter` inside `swagger_path`.
|
417
418
|
* v1.3.2: Bugfix to allow `property` inside `items` for rare extended schema uses.
|
418
419
|
* v1.3.1: Bugfix to allow nested objects via `property` nested in `property`.
|
data/lib/swagger/blocks.rb
CHANGED
@@ -234,7 +234,7 @@ module Swagger
|
|
234
234
|
elsif is_swagger_2_0? && value.is_a?(Hash)
|
235
235
|
result[key] = {}
|
236
236
|
value.each_pair {|k, v| result[key][k] = (v.respond_to?(:as_json) ? v.as_json : v) }
|
237
|
-
elsif is_swagger_2_0? && key.to_s.eql?('$ref') && (value.to_s !~ %r{
|
237
|
+
elsif is_swagger_2_0? && key.to_s.eql?('$ref') && (value.to_s !~ %r{^#/|https?://})
|
238
238
|
result[key] = "#/definitions/#{value}"
|
239
239
|
else
|
240
240
|
result[key] = value
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger-blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Fotinakis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|