Apipie.configure do |config|
  config.app_name = "Teletype Games API"
  config.api_base_url = ""
  config.doc_base_url = "/api/docs"
  config.api_controllers_matcher = [
    "#{Rails.root}/app/controllers/api/**/*.rb",
    "#{WarpEngine::Engine.root}/app/controllers/**/*.rb"
  ]
  config.validate = false
  config.translate = false
  config.default_version = "1.0"
  config.app_info = "Teletype Games retro game library API"
  config.generator.swagger.content_type_input = :json
  config.generator.swagger.json_input_uses_refs = true
  config.generator.swagger.suppress_warnings = true
end
