tomograph 3.2.5 → 3.2.7

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: 78d232066faa6723edc7bd4f7f0e3fe5f969a0a75594e0532462f1d094843099
4
- data.tar.gz: 68ffafe21b3f7b67ee33f4d7dc177aa184ef6dae20cdc7645af87097ff0a6454
3
+ metadata.gz: df200f372e9f0e40bb72b2fb5bda369f79519b3081ce0d562f172d91011328ae
4
+ data.tar.gz: c34517a4d760e0ed3412663976744e4200f7e2bc5b1171d07e96fb7d8d279be6
5
5
  SHA512:
6
- metadata.gz: ac711a3a470990481526966fc4b79648ffc98bcec078139472613c6ff36ed3a5d42d60ee0ecca3bc60b91d89383707b32354e3c7558e144ff09012eec2499a7f
7
- data.tar.gz: 48f0557dd893211c057957c81de3cf683acb2a4f5db44aec3664f52b58486c0312cde3dc71fb6b7e3728c90ac600efd129bc8eb11346491a137678bd9e5cae95
6
+ metadata.gz: 3cfe0cc68a80c58eb6f0a1da50cf36f3f4ce30497be8b3c0f639d3922a9ecf4ef2afe52ce04c5e9267361233628f432b19f72fd39deee74aa0e3fa7ffec67868
7
+ data.tar.gz: 0df481b090aaf42a50c10eec7ffafe2e04077432de5e89ab1c8041a276a4095e01e2fe510f40fa34c0e6baae33d3dcf2229a194d4cfdfc26e6e2c081283f9404
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change log
2
2
 
3
+ ### 3.2.7 - 2024-12-08
4
+
5
+ * bug fixes
6
+ * fix other content-type for request OpenAPI 3
7
+
8
+ ### 3.2.6 - 2024-12-08
9
+
10
+ * bug fixes
11
+ * fix null content-type for request OpenAPI 3
12
+
3
13
  ### 3.2.5 - 2024-12-02
4
14
 
5
15
  * bug fixes
@@ -17,7 +17,7 @@ module Tomograph
17
17
  result.push(Tomograph::Tomogram::Action.new(
18
18
  path: "#{@prefix}#{path}",
19
19
  method: method.upcase,
20
- content_type: action_definition[method]['requestBody'] && action_definition[method]['requestBody']['content'].keys[0] == 'application/json' ? action_definition[method]['requestBody']['content'].keys[0] : '',
20
+ content_type: action_definition[method]['requestBody'].nil? ? nil : action_definition[method]['requestBody']['content'].keys[0],
21
21
  requests: [schema_new(valuekey(aj, 'schema'), @documentation['definitions'])].compact,
22
22
  responses: responses(action_definition[method]['responses']),
23
23
  resource: ''
@@ -67,7 +67,7 @@ module Tomograph
67
67
  result.push(
68
68
  'status' => response_code,
69
69
  'body'=> {},
70
- 'content-type' => ''
70
+ 'content-type' => nil
71
71
  )
72
72
  else
73
73
  result += responses_by_content_types(response['content'], response_code)
@@ -1,3 +1,3 @@
1
1
  module Tomograph
2
- VERSION = '3.2.5'.freeze
2
+ VERSION = '3.2.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomograph
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.5
4
+ version: 3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-02 00:00:00.000000000 Z
11
+ date: 2024-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: methadone