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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9f90c08a2cc2e78fca981c2e4db7836cb1f14632b478d6bb951146cb9101d66
4
- data.tar.gz: 33bf560f05ecac510ff401ebe3067e487ee28b7378395a0f97b3a44f6a4388a7
3
+ metadata.gz: 0c6e3e942b0b82282f1bf2c68344e91ef59a292dd475af9db08a2e9a1f1d0ccf
4
+ data.tar.gz: c86189fa19edc6da0048a6a90bcecb2e7711942dcc64144eb04a4a8fd76df03c
5
5
  SHA512:
6
- metadata.gz: 93d02007263ab18d0f37f7e41013eeb75082ceaec296f8023d104f6cbf5ea15874a6130cb89b0bfe5af5dbc602104948b41d2bc4ce929397535210e3d9e63158
7
- data.tar.gz: 80436b836812d8550c7798506e585ba7368f61db3afa08fae34c3ae7eeb940b24dedcab2e297176140d060a4841d8f4716d9ea3add070fbdbac90f7b51efebec
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)
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Swagger
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-swagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jane-Terziev