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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b762d9acb939ae91811002d9f0e439ea69668460f2cc76011e97d8110e5ed83
|
4
|
+
data.tar.gz: b86c503146e5122e6c7b1441335d6b97616b444934c95b56ac3339b289fd6a72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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(
|
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
|
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
|
|
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.
|
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.
|
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:
|