webspicy 0.21.6 → 0.21.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webspicy/version.rb +1 -1
- data/lib/webspicy/web/openapi/generator.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebc6a59cdd54771817e5613d8a5ecf53651034453c801d3e505fc30d39851bed
|
4
|
+
data.tar.gz: e5ee25c0870072c02c69e6a90e2a6803de5dba78062b59b3bd8f1c183a7d91e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f8632e1117aa06d2b717b790f2150d35a305ee37f2de912f5b412decfe969d3a78f3470f9074a7eb35c6d2180adf9c3d0f02f6629628f7e07e4c18428378640
|
7
|
+
data.tar.gz: 9ef40e507cfb9e50de794dc1d9f593adf4e92f318aa1fd37a6ab4a13035c1977b308ae483e0d017838a6bb9143264b3d6f6dbe34dfdbfc1808ec0076c24d9490
|
data/lib/webspicy/version.rb
CHANGED
@@ -114,10 +114,15 @@ module Webspicy
|
|
114
114
|
def request_body_for(service)
|
115
115
|
schema = actual_input_schema(service)
|
116
116
|
example = nil # catch(:unfound) { generator.call(schema, {}) }
|
117
|
+
content_type = if service.method.downcase == 'post_form'
|
118
|
+
'application/x-www-form-urlencoded'
|
119
|
+
else
|
120
|
+
'application/json'
|
121
|
+
end
|
117
122
|
{
|
118
123
|
required: true,
|
119
124
|
content: {
|
120
|
-
|
125
|
+
content_type => {
|
121
126
|
schema: schema.to_json_schema,
|
122
127
|
example: example
|
123
128
|
}.compact
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|