lib/oas_rails.rb in oas_rails-0.4.5 vs lib/oas_rails.rb in oas_rails-0.5.0

- old
+ new

@@ -7,10 +7,11 @@ require "oas_rails/engine" autoload :Configuration, "oas_rails/configuration" autoload :OasRoute, "oas_rails/oas_route" autoload :Utils, "oas_rails/utils" + autoload :JsonSchemaGenerator, "oas_rails/json_schema_generator" module Builders autoload :OperationBuilder, "oas_rails/builders/operation_builder" autoload :PathItemBuilder, "oas_rails/builders/path_item_builder" autoload :ResponseBuilder, "oas_rails/builders/response_builder" @@ -43,11 +44,15 @@ autoload :Specification, "oas_rails/spec/specification" autoload :Reference, "oas_rails/spec/reference" end module YARD - autoload :OasYARDFactory, 'oas_rails/yard/oas_yard_factory' + autoload :RequestBodyTag, 'oas_rails/yard/request_body_tag' + autoload :RequestBodyExampleTag, 'oas_rails/yard/request_body_example_tag' + autoload :ParameterTag, 'oas_rails/yard/parameter_tag' + autoload :ResponseTag, 'oas_rails/yard/response_tag' + autoload :OasRailsFactory, 'oas_rails/yard/oas_rails_factory' end module Extractors autoload :RenderResponseExtractor, 'oas_rails/extractors/render_response_extractor' autoload :RouteExtractor, "oas_rails/extractors/route_extractor" @@ -71,10 +76,10 @@ def config @config ||= Configuration.new end def configure_yard! - ::YARD::Tags::Library.default_factory = YARD::OasYARDFactory + ::YARD::Tags::Library.default_factory = YARD::OasRailsFactory yard_tags = { 'Request body' => [:request_body, :with_request_body], 'Request body Example' => [:request_body_example, :with_request_body_example], 'Parameter' => [:parameter, :with_parameter], 'Response' => [:response, :with_response],