apivore 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/apivore/swagger.rb +2 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjllOTllNmI0NjAzYTg5MTA2MTc0MDRiNDQ5NjMyM2VkM2NiMmMzZA==
4
+ OGNmYjc5OTRjZjZmYzM1YjFmZmVlZTk2NWQxNDc3Y2YzZmYyYjBjZA==
5
5
  data.tar.gz: !binary |-
6
- YjYyZDZmODJhNzA0MjkzZmJiMzdhMjU0NzU0NjgwZDRmMTM2ZGUxNQ==
6
+ NGEzZTQ5NzEwMzEwZDZmOTg4YTQwZmNmMjE4YjMzODEzYTgyMDVjNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Yjc5OTg3ZWEyZmM3NjUxMmEzYmZkOWJkOWJkYjQ2NzNmMTgzODdkYTI4MjRm
10
- ZTQ3YmFhOWE0NTI0MmFhMTdiMjViZDhhYzgxYThjMjU0YzNmMzBmNDY0ZGM0
11
- MDFhYTVhNWE2NTk4NjY5NDU2M2ZlZmJhZmM3NzM5YmZkOTdhZWQ=
9
+ YmRlNjAwOTI5N2ViODIwZTMwNDNkYjg3MmU1MjhiNTFmODgwNDk1OWNlNDdk
10
+ MTM0YjVkYjkwMzQ0NzE2ZGUyNmY0NWIxY2Q0MGNmNGM4NWI3OWM5NjAzZjQ4
11
+ NDYwMTM0YTMxMGQ4OGFhYWJlYWQ4YzM1YjE5MjhlMzllZGFjODQ=
12
12
  data.tar.gz: !binary |-
13
- ZGE5YzU1YjE4YTJjN2M4YjhlYjM1MGU4YjdkNGUxMmYxYjVlYWFlMmVkZWZm
14
- M2VjY2RlZDcxY2ExYzI5ZjU4NjFmZTM4ODg0YTlmZWJhNjBkZTBlYzFlY2Jm
15
- ZTEwNTlhNjViMWM0NDAzMWY1ZmUwYWNmOTllNzI1ODU2MTE1N2Y=
13
+ OGE5OGY0OWRjZDAwZjYxNjI5YTkzOTA0OGNhYTQxNDQzNGEzZGM4YmM5ODNk
14
+ OGEzOGE1ZDhiZTFkOGEzMjU3ZTExNjk0YThjN2I2NjU4OWJiMGE0NDEyMDYx
15
+ MzBjNzZlNmM3M2Y5NzAxYTU0NmEyZGU3YTYxMmYzYWQ3MGM0NWI=
@@ -4,6 +4,7 @@ require 'apivore/fragment'
4
4
 
5
5
  module Apivore
6
6
  class Swagger < Hashie::Mash
7
+ NONVERB_PATH_ITEMS = %q(parameters)
7
8
 
8
9
  def validate
9
10
  case version
@@ -26,6 +27,7 @@ module Apivore
26
27
  def each_response(&block)
27
28
  paths.each do |path, path_data|
28
29
  path_data.each do |verb, method_data|
30
+ next if NONVERB_PATH_ITEMS.include?(verb)
29
31
  raise "No responses found in swagger for path '#{path}', method #{verb}: #{method_data.inspect}" if method_data.responses.nil?
30
32
  method_data.responses.each do |response_code, response_data|
31
33
  schema_location = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apivore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Horn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema