Module: OpenapiFirst::Plugins
- Defined in:
- lib/openapi_first/plugins.rb
Constant Summary collapse
- ERROR_RESPONSES =
rubocop:disable Style/MutableConstant
{}
Class Method Summary collapse
Class Method Details
.find_error_response(name) ⇒ Object
11 12 13 14 15 |
# File 'lib/openapi_first/plugins.rb', line 11 def self.find_error_response(name) return name if name.is_a?(Class) ERROR_RESPONSES.fetch(name) end |
.register_error_response(name, klass) ⇒ Object
7 8 9 |
# File 'lib/openapi_first/plugins.rb', line 7 def self.register_error_response(name, klass) ERROR_RESPONSES[name] = klass end |