blumquist 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/blumquist.rb +12 -1
- data/lib/blumquist/version.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: 249b88b4bc80ec7543759b3b0700d7cfe9f04b3a
|
4
|
+
data.tar.gz: 3cbb84ab029425323f711d3d210e2db223a9574a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 770dda447195fd81228acecef7d578f12cdc3a6eecad0768bca384db7696739180b8e9adf4bacbc6cc414892a099abe2a6050016ca2fb0a9e3ded07156cf613c
|
7
|
+
data.tar.gz: 092f9723612e3625538b50919773b46491ec8fcb80ff48bc0dad65d3a859153b3b35e4b1614dd200e5ddf1fa1d2047001faad4aef6853ecb25fa2eac14f01975
|
data/CHANGELOG.md
CHANGED
data/lib/blumquist.rb
CHANGED
@@ -92,7 +92,18 @@ class Blumquist
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def blumquistify_array(property)
|
95
|
-
|
95
|
+
# We only support arrays with one type defined, either through
|
96
|
+
#
|
97
|
+
# "type": "array",
|
98
|
+
# "items": { "$ref": "#/definitions/mytype" }
|
99
|
+
#
|
100
|
+
# or through
|
101
|
+
#
|
102
|
+
# "type": "array",
|
103
|
+
# "items": [{ "$ref": "#/definitions/mytype" }]
|
104
|
+
#
|
105
|
+
pointer = [@schema[:properties][property][:items]].flatten.first
|
106
|
+
item_schema = resolve_json_pointer!(pointer)
|
96
107
|
raise(Errors::MissingArrayItemsType, @schema[:properties][property]) unless item_schema
|
97
108
|
sub_schema = item_schema.merge(
|
98
109
|
definitions: @schema[:definitions]
|
data/lib/blumquist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blumquist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jannis Hermanns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|