apivore 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/apivore/swagger.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yjc2NjJkNTQwMWMxYmI2MzcyZTk5ZTcwYWI5NzAwMDBiOTU3N2U4ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDE1NDgxNzU3NDU4ZDEwMWJiMWEzZDhmOTA3YjhmZTRjOWVhOTdmNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjUzZjBlZjMwMzQ3ZWFmOTRlOGYwYTJiMmRiNmFhMmQ3YjUzYWU3ZDliNjg4
|
10
|
+
YmU0NjZhYTYxY2FjZmJjMzZkYTM5NzRjYjU1ZWIwZGRmNmRmOWJlMDZmZGE3
|
11
|
+
ZTAzOGM1ZGJjMmEyYjk0OWRhMGFmN2VmMTNhOWQzYmM2YjY4ZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTE0ZThkYTdiZWM4ZGI1NjZkNWI5MGY1MzU4MWRhMWJjMmRlYWQ5NTU5OThj
|
14
|
+
ZmYwOWMxMzMxZjZiNWI4MzY5ODMzNmM1Y2Q5YmMyYTQxY2VlOGE0Y2VkMDNi
|
15
|
+
MDQ1ZjYwODNhZjliMjNjMTY4YjlkNDc2ZmE0MGZlN2I5MjVjYzc=
|
data/lib/apivore/swagger.rb
CHANGED
@@ -26,6 +26,7 @@ module Apivore
|
|
26
26
|
|
27
27
|
def each_response(&block)
|
28
28
|
paths.each do |path, path_data|
|
29
|
+
next if vendor_specific_tag? path
|
29
30
|
path_data.each do |verb, method_data|
|
30
31
|
next if NONVERB_PATH_ITEMS.include?(verb)
|
31
32
|
raise "No responses found in swagger for path '#{path}', method #{verb}: #{method_data.inspect}" if method_data.responses.nil?
|
@@ -39,5 +40,10 @@ module Apivore
|
|
39
40
|
end
|
40
41
|
end
|
41
42
|
end
|
43
|
+
|
44
|
+
def vendor_specific_tag? tag
|
45
|
+
tag =~ /\Ax-.*/
|
46
|
+
end
|
47
|
+
|
42
48
|
end
|
43
49
|
end
|