Skip to content

Commit

Permalink
Fixed namespace error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jane-Terziev committed Jan 12, 2024
1 parent 92fcd7e commit af112bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/dry/swagger/documentation_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ class DocumentationGenerator
}.freeze

def initialize
@config = Config::SwaggerConfiguration
@config = ::Dry::Swagger::Config::SwaggerConfiguration
end

def from_struct(struct)
generate_documentation(DryStructParser::StructSchemaParser.new.call(struct).keys)
generate_documentation(::DryStructParser::StructSchemaParser.new.call(struct).keys)
end

def from_validation(validation)
generate_documentation(DryValidationParser::ValidationSchemaParser.new.call(validation).keys)
generate_documentation(::DryValidationParser::ValidationSchemaParser.new.call(validation).keys)
end

def generate_documentation(fields)
Expand Down
2 changes: 1 addition & 1 deletion lib/dry/swagger/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Dry
module Swagger
VERSION = "2.0.0"
VERSION = "2.0.1"
end
end

0 comments on commit af112bf

Please sign in to comment.