dry-swagger 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dry/swagger/documentation_generator.rb +3 -3
- data/lib/dry/swagger/version.rb +1 -1
- data/lib/dry/swagger.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c6e3e942b0b82282f1bf2c68344e91ef59a292dd475af9db08a2e9a1f1d0ccf
|
4
|
+
data.tar.gz: c86189fa19edc6da0048a6a90bcecb2e7711942dcc64144eb04a4a8fd76df03c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 386ada0ba592e6f239c6605c00104ed59719469d6d3b8d8e8c04dd346820e8d2727c41a751a432368bd8c416774f6503b82ce0fb7771703087de5518285173dd
|
7
|
+
data.tar.gz: 82665b211103191545dc42a948f891b22e21d4ab01effdb6cf42a9828727263f0aa27679cd8a20541f20031ad1159b1c64b3475e057138107dabdb5a75de4452
|
@@ -12,15 +12,15 @@ module Dry
|
|
12
12
|
}.freeze
|
13
13
|
|
14
14
|
def initialize
|
15
|
-
@config = Config::SwaggerConfiguration
|
15
|
+
@config = ::Dry::Swagger::Config::SwaggerConfiguration
|
16
16
|
end
|
17
17
|
|
18
18
|
def from_struct(struct)
|
19
|
-
generate_documentation(DryStructParser::StructSchemaParser.new.call(struct).keys)
|
19
|
+
generate_documentation(::DryStructParser::StructSchemaParser.new.call(struct).keys)
|
20
20
|
end
|
21
21
|
|
22
22
|
def from_validation(validation)
|
23
|
-
generate_documentation(DryValidationParser::ValidationSchemaParser.new.call(validation).keys)
|
23
|
+
generate_documentation(::DryValidationParser::ValidationSchemaParser.new.call(validation).keys)
|
24
24
|
end
|
25
25
|
|
26
26
|
def generate_documentation(fields)
|
data/lib/dry/swagger/version.rb
CHANGED
data/lib/dry/swagger.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
require "dry/swagger/version"
|
2
|
+
require "dry_struct_parser/struct_schema_parser"
|
3
|
+
require "dry_validation_parser/validation_schema_parser"
|
2
4
|
require 'dry/swagger/documentation_generator'
|
3
5
|
require 'dry/swagger/errors/missing_hash_schema_error'
|
4
6
|
require 'dry/swagger/errors/missing_type_error'
|