oas_parser 0.22.1 → 0.22.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76d67b535e2ea975f89df9bc0440cb5f4c176fad970ece20d8792f81a44caa7b
4
- data.tar.gz: 3b8f4ae92a913b517b9098627a8267c43ec8bc5129d87f8fd0cc9c003731ae8f
3
+ metadata.gz: a00059de0a56e556f6434379bb38b292b78ddca7a3277f291bb97101e2852e77
4
+ data.tar.gz: d00fcdb5f18a4759ecb06cf2bfc5d8d9864d7131b7cfd6a2f07c12e513f581d5
5
5
  SHA512:
6
- metadata.gz: d3100b1f9a841df3d4953e42a77e6b0d52680615678fb464d473e58e840386c4234035db2d6aeea86285b9310227893450b0a9ccf527b394b9ae8bfe9651c48a
7
- data.tar.gz: 60965b90d1918f979446029da36940b201cf9afc51b860ccd5211f4fe3c372a747026d3a0eb7fd024a431e357b47514ef9c0dfadd40abf66a2ad818afeeaf658
6
+ metadata.gz: 8dbf33dadd1b9023de322445eb610ea556d55bbaad4a4fe822c4c419186bc8ee6d9cfd6f6b159f4a1026a39f4a550a54da10b891a760e4c842e1356b26fa6fe9
7
+ data.tar.gz: c6cdf8afcfe42b2809784e7c5b93568b4d0efaa0b0e690173e6750007742f3cf79adc760634d90d4ba5bc5e1d0bee44210661d22091ae7e4d5ac83414dbe9ec4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oas_parser (0.22.0)
4
+ oas_parser (0.22.2)
5
5
  activesupport (>= 4.0.0)
6
6
  addressable (~> 2.3)
7
7
  builder (~> 3.2.3)
@@ -136,8 +136,9 @@ module OasParser
136
136
  end
137
137
  end
138
138
 
139
- if object['items'] && object['items']['oneOf']
140
- items = object['items']['oneOf'].map do |obj|
139
+ if object['items'] && (object['items']['oneOf'] || object['items']['anyOf'])
140
+ key = object['items']['oneOf'] ? 'oneOf' : 'anyOf'
141
+ items = object['items'][key].map do |obj|
141
142
  route(obj)
142
143
  end
143
144
 
@@ -1,3 +1,3 @@
1
1
  module OasParser
2
- VERSION = '0.22.1'.freeze
2
+ VERSION = '0.22.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oas_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Butler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2019-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable