Module: SwaggerUiEngine2::ConfigParser
- Included in:
- SwaggerDocsController
- Defined in:
- app/helpers/swagger_ui_engine_2/config_parser.rb
Instance Method Summary collapse
Instance Method Details
#configuration ⇒ Object
22 23 24 |
# File 'app/helpers/swagger_ui_engine_2/config_parser.rb', line 22 def configuration SwaggerUiEngine2.configuration end |
#set_validator_url ⇒ Object
14 15 16 |
# File 'app/helpers/swagger_ui_engine_2/config_parser.rb', line 14 def set_validator_url validator_enabled? ? SwaggerUiEngine2::DEFAULTS[:validator_url] : 'null' end |
#validator_enabled? ⇒ Boolean
18 19 20 |
# File 'app/helpers/swagger_ui_engine_2/config_parser.rb', line 18 def validator_enabled? configuration.validator_enabled || false end |