Class: Rage::OpenAPI::Parsers::Response
- Inherits:
-
Object
- Object
- Rage::OpenAPI::Parsers::Response
- Defined in:
- lib/rage/openapi/parsers/response.rb
Constant Summary collapse
- AVAILABLE_PARSERS =
[ Rage::OpenAPI::Parsers::SharedReference, Rage::OpenAPI::Parsers::Ext::ActiveRecord, Rage::OpenAPI::Parsers::Ext::Alba, Rage::OpenAPI::Parsers::YAML ]
Class Method Summary collapse
Class Method Details
.parse(response_tag, namespace:) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/rage/openapi/parsers/response.rb', line 11 def self.parse(response_tag, namespace:) parser = AVAILABLE_PARSERS.find do |parser_class| parser = parser_class.new(namespace:) break parser if parser.known_definition?(response_tag) end parser.parse(response_tag) if parser end |