swagger-dsl 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/swagger/dsl/components.rb +1 -1
- data/lib/swagger/dsl/config.rb +1 -1
- data/lib/swagger/dsl/serializer.rb +1 -1
- data/lib/swagger/dsl/version.rb +1 -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: 2fdb0f1e88082ae965e4b6075a7dd8ef91efb750208b7f11fa5522a6be1f7144
|
4
|
+
data.tar.gz: 3bf9c27d7202419ce13b5fce8296edf1fbbdcbc7c391a15bc7aecd580a358a61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84423580c60508efe85948381313f60b075b892869c730b6e1e86bf4418914edcdf08314910c25634ee86117262c106293c7613a0059a2e6b1d8ff29801cc6c8
|
7
|
+
data.tar.gz: 413775b11c9556ce0366b0d61acd21aa63a445fbd6fc80e00cf6723527a93762ab80a45259734d84e5119a1f91e24337f4678ca021b9e6ab479b7bea06f5f6d4
|
data/CHANGELOG.md
CHANGED
data/lib/swagger/dsl/config.rb
CHANGED
@@ -13,7 +13,7 @@ module Swagger
|
|
13
13
|
)
|
14
14
|
@inject_key = inject_key
|
15
15
|
@default_dsl = default_dsl
|
16
|
-
@dsl_options ||= { reference_name: ->(name) { name.sub(/Serializer$/, "") } }
|
16
|
+
@dsl_options ||= { reference_name: ->(name) { name.sub(/Serializer$/, "").gsub(/::/, '-') } }
|
17
17
|
@eager = eager
|
18
18
|
@default_required = default_required
|
19
19
|
@lazy_define_paths = lazy_define_paths
|
@@ -5,7 +5,7 @@ module Swagger
|
|
5
5
|
class DSL < Hash
|
6
6
|
module Serializer
|
7
7
|
def swagger(dsl: nil, &block)
|
8
|
-
name = self.name.sub(/Serializer$/, "")
|
8
|
+
name = self.name.sub(/Serializer$/, "").gsub(/::/, '-')
|
9
9
|
Swagger::DSL.current["components"]["schemas"][name] =
|
10
10
|
Swagger::DSL::JsonSchema.by(dsl).dsl(&block).merge(Swagger::DSL.current.config.inject_key => name)
|
11
11
|
end
|
data/lib/swagger/dsl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger-dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Narazaka
|
@@ -292,7 +292,7 @@ metadata:
|
|
292
292
|
homepage_uri: https://github.com/Narazaka/swagger-dsl
|
293
293
|
source_code_uri: https://github.com/Narazaka/swagger-dsl.git
|
294
294
|
changelog_uri: https://github.com/Narazaka/swagger-dsl/blob/master/CHANGELOG.md
|
295
|
-
documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/2.0.
|
295
|
+
documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/2.0.1
|
296
296
|
post_install_message:
|
297
297
|
rdoc_options: []
|
298
298
|
require_paths:
|