apivore 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/apivore/swagger.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGNmYjc5OTRjZjZmYzM1YjFmZmVlZTk2NWQxNDc3Y2YzZmYyYjBjZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGEzZTQ5NzEwMzEwZDZmOTg4YTQwZmNmMjE4YjMzODEzYTgyMDVjNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmRlNjAwOTI5N2ViODIwZTMwNDNkYjg3MmU1MjhiNTFmODgwNDk1OWNlNDdk
|
10
|
+
MTM0YjVkYjkwMzQ0NzE2ZGUyNmY0NWIxY2Q0MGNmNGM4NWI3OWM5NjAzZjQ4
|
11
|
+
NDYwMTM0YTMxMGQ4OGFhYWJlYWQ4YzM1YjE5MjhlMzllZGFjODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGE5OGY0OWRjZDAwZjYxNjI5YTkzOTA0OGNhYTQxNDQzNGEzZGM4YmM5ODNk
|
14
|
+
OGEzOGE1ZDhiZTFkOGEzMjU3ZTExNjk0YThjN2I2NjU4OWJiMGE0NDEyMDYx
|
15
|
+
MzBjNzZlNmM3M2Y5NzAxYTU0NmEyZGU3YTYxMmYzYWQ3MGM0NWI=
|
data/lib/apivore/swagger.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|