swagger-serializer 0.7.0 → 0.8.0
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: 2db06e0ef0a3003dd60b7bb191206b5d40f1b8a07065356745afe7b04bd2a0f8
|
4
|
+
data.tar.gz: 7513789b00e3bf672e20fe163bda359009f4419fac0ca1bbf9a84b50e7b77ecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7096a0b8bbfcbbe48036c85f3c5948eb60405ecc001e9b17e8183d15f06dd5b605ccd0169851965c1b36da76cabc7dbd18661924af67b735162ca8296ef08c11
|
7
|
+
data.tar.gz: d8a12cde3ab7977c463ab0ac4989015fcdac90f10f87d0e9733dddcbf27a745236501e9d348b9bc515c710bafbe4e966cf957ef10b91062b219cc62c40752b47
|
data/lib/swagger/schema.rb
CHANGED
@@ -9,8 +9,9 @@ module Swagger
|
|
9
9
|
@schema = schema
|
10
10
|
end
|
11
11
|
|
12
|
-
def serializer(options = {})
|
13
|
-
|
12
|
+
def serializer(options = {}, store = true)
|
13
|
+
use_options = store ? Swagger::Serializer::Store.current.serialize_options.merge(options) : options
|
14
|
+
JSON::Schema::Serializer.new(@schema, use_options)
|
14
15
|
end
|
15
16
|
end
|
16
17
|
end
|
@@ -14,12 +14,14 @@ module Swagger
|
|
14
14
|
|
15
15
|
define_schema_accessor :schema, :example, :examples, :encoding
|
16
16
|
|
17
|
-
def serializer(options = {})
|
18
|
-
|
17
|
+
def serializer(options = {}, store = true)
|
18
|
+
use_options = store ? Swagger::Serializer::Store.current.serialize_options.merge(options) : options
|
19
|
+
JSON::Schema::Serializer.new(schema, use_options)
|
19
20
|
end
|
20
21
|
|
21
|
-
def deserializer(options = {})
|
22
|
-
|
22
|
+
def deserializer(options = {}, store = true)
|
23
|
+
use_options = store ? Swagger::Serializer::Store.current.deserialize_options.merge(options) : options
|
24
|
+
Deserializer.new(schema, use_options)
|
23
25
|
end
|
24
26
|
|
25
27
|
def validator
|
@@ -57,12 +57,14 @@ module Swagger
|
|
57
57
|
schema
|
58
58
|
end
|
59
59
|
|
60
|
-
def serializer(options = {})
|
61
|
-
|
60
|
+
def serializer(options = {}, store = true)
|
61
|
+
use_options = store ? Swagger::Serializer::Store.current.serialize_options.merge(options) : options
|
62
|
+
JSON::Schema::Serializer.new(to_json_schema, use_options)
|
62
63
|
end
|
63
64
|
|
64
|
-
def deserializer(options = {})
|
65
|
-
|
65
|
+
def deserializer(options = {}, store = true)
|
66
|
+
use_options = store ? Swagger::Serializer::Store.current.deserialize_options.merge(options) : options
|
67
|
+
Deserializer.new(self, use_options)
|
66
68
|
end
|
67
69
|
|
68
70
|
def validator
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger-serializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Narazaka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema-serializer
|
@@ -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.
|
237
|
+
documentation_uri: https://www.rubydoc.info/gems/swagger-serializer/0.8.0
|
238
238
|
post_install_message:
|
239
239
|
rdoc_options: []
|
240
240
|
require_paths:
|