webspicy 0.21.5 → 0.21.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd39249e2d93a03a088b344c149394e112e57e8b34f5fb20ae2d48018a7c48c5
|
4
|
+
data.tar.gz: 73cbf44b32c9f8609106ddac8495e94d590d3d827325ca40ce7d7d483b35767d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bddeb1dc84bcbe261f037df5051e575d2540eb781538bc240b736b33b15b7d6876362ffcce456510a9fa90e8b2574952c73006bec8e670a5cc737f625402b843
|
7
|
+
data.tar.gz: 8e0c0275a2b14909491ca835e002fb33869f0d44617605339869a1275ccaf5457b1e1cda356106cd23ef4bd4d73c595bac151d551cf9144bfb363062eb49ca5d
|
data/lib/webspicy/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Webspicy
|
2
|
+
class Specification
|
3
|
+
module Pre
|
4
|
+
|
5
|
+
def contribute_to_openapi_verb(verb_defn)
|
6
|
+
verb_defn
|
7
|
+
end
|
8
|
+
|
9
|
+
end # module Pre
|
10
|
+
module Post
|
11
|
+
|
12
|
+
def contribute_to_openapi_verb(verb_defn)
|
13
|
+
verb_defn
|
14
|
+
end
|
15
|
+
|
16
|
+
end # module Post
|
17
|
+
end # class Specification
|
18
|
+
end # module Webspicy
|
@@ -100,6 +100,13 @@ module Webspicy
|
|
100
100
|
unless ['get', 'options', 'delete', 'head'].include?(verb)
|
101
101
|
verb_defn[:requestBody] = request_body_for(service)
|
102
102
|
end
|
103
|
+
verb_defn = service.conditions.inject(verb_defn) do |memo, p|
|
104
|
+
if p.respond_to?(:contribute_to_openapi_verb)
|
105
|
+
p.contribute_to_openapi_verb(memo)
|
106
|
+
else
|
107
|
+
memo
|
108
|
+
end
|
109
|
+
end
|
103
110
|
verbs.merge({ verb => verb_defn })
|
104
111
|
end
|
105
112
|
end
|
data/lib/webspicy/web/openapi.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webspicy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.
|
4
|
+
version: 0.21.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
@@ -351,6 +351,7 @@ files:
|
|
351
351
|
- lib/webspicy/web/mocker.rb
|
352
352
|
- lib/webspicy/web/mocker/config.ru
|
353
353
|
- lib/webspicy/web/openapi.rb
|
354
|
+
- lib/webspicy/web/openapi/ext.rb
|
354
355
|
- lib/webspicy/web/openapi/generator.rb
|
355
356
|
- lib/webspicy/web/specification.rb
|
356
357
|
- lib/webspicy/web/specification/file_upload.rb
|