swagger-serializer 0.8.0 → 0.8.1

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: 2db06e0ef0a3003dd60b7bb191206b5d40f1b8a07065356745afe7b04bd2a0f8
4
- data.tar.gz: 7513789b00e3bf672e20fe163bda359009f4419fac0ca1bbf9a84b50e7b77ecb
3
+ metadata.gz: 7b762d9acb939ae91811002d9f0e439ea69668460f2cc76011e97d8110e5ed83
4
+ data.tar.gz: b86c503146e5122e6c7b1441335d6b97616b444934c95b56ac3339b289fd6a72
5
5
  SHA512:
6
- metadata.gz: 7096a0b8bbfcbbe48036c85f3c5948eb60405ecc001e9b17e8183d15f06dd5b605ccd0169851965c1b36da76cabc7dbd18661924af67b735162ca8296ef08c11
7
- data.tar.gz: d8a12cde3ab7977c463ab0ac4989015fcdac90f10f87d0e9733dddcbf27a745236501e9d348b9bc515c710bafbe4e966cf957ef10b91062b219cc62c40752b47
6
+ metadata.gz: 29bc447d31f6b1a50cf7a03f88ee17fd51fb49d6f7a4b47c49b49c84de0075d2ca957a811d471730b9cdd1ed9d7fe2febbaad17c35d5ccd20a7a7a4f97fcce33
7
+ data.tar.gz: 04d105d4016fecc947ca791a082131d47b4e5f51bf8fbf01e6ca39806db9460402e969326ad8a241c41ecbb30088d461d01eeba480ecfcb6416d4fdb21bda352
@@ -11,17 +11,17 @@ module Swagger
11
11
  end
12
12
 
13
13
  define_schema_accessor %i[
14
- description
15
- required
16
- deprecated
17
- allowEmptyValue
18
- style
19
- explode
20
- allowReserved
21
- schema
22
- example
23
- examples
24
- ].freeze
14
+ description
15
+ required
16
+ deprecated
17
+ allowEmptyValue
18
+ style
19
+ explode
20
+ allowReserved
21
+ schema
22
+ example
23
+ examples
24
+ ].freeze
25
25
 
26
26
  def to_json_schema
27
27
  schema
@@ -9,7 +9,7 @@ module Swagger::Serializer::RailsController
9
9
 
10
10
  def render_serializer(code, format, context = nil)
11
11
  response_obj = swagger_operation.responses[code]
12
- response_obj.content.send(format).serializer(Swagger::Serializer::Store.current.serialize_options.merge(inject_context: context))
12
+ response_obj.content.send(format).serializer(inject_context: context)
13
13
  end
14
14
 
15
15
  def swagger_operation
@@ -37,7 +37,7 @@ module Swagger::Serializer::RailsController
37
37
 
38
38
  def parameter_deserializer
39
39
  @parameter_deserializer ||=
40
- swagger_operation.parameters.deserializer(Swagger::Serializer::Store.current.deserialize_options)
40
+ swagger_operation.parameters.deserializer
41
41
  end
42
42
 
43
43
  def body_params
@@ -47,9 +47,7 @@ module Swagger::Serializer::RailsController
47
47
  def body_deserializer
48
48
  @body_deserializer ||=
49
49
  if request.content_type
50
- swagger_operation.request_body.content[request.content_type]&.deserializer(
51
- Swagger::Serializer::Store.current.deserialize_options,
52
- )
50
+ swagger_operation.request_body.content[request.content_type]&.deserializer
53
51
  end
54
52
  end
55
53
 
@@ -1,5 +1,5 @@
1
1
  module Swagger
2
2
  module Serializer
3
- VERSION = "0.8.0".freeze
3
+ VERSION = "0.8.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka
@@ -234,7 +234,7 @@ metadata:
234
234
  homepage_uri: https://github.com/Narazaka/swagger-serializer
235
235
  source_code_uri: https://github.com/Narazaka/swagger-serializer.git
236
236
  changelog_uri: https://github.com/Narazaka/swagger-serializer/blob/master/CHANGELOG.md
237
- documentation_uri: https://www.rubydoc.info/gems/swagger-serializer/0.8.0
237
+ documentation_uri: https://www.rubydoc.info/gems/swagger-serializer/0.8.1
238
238
  post_install_message:
239
239
  rdoc_options: []
240
240
  require_paths: