lib/dry/swagger/documentation_generator.rb in dry-swagger-2.0.0 vs lib/dry/swagger/documentation_generator.rb in dry-swagger-2.0.1

- old
+ new

@@ -10,18 +10,18 @@ "date" => { type: :string, format: :date }, "time" => { type: :string, format: :time }, }.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) documentation = { properties: {}, required: [] } fields.each do |field_name, definition|