{"record":{"id":"56c5c6072fb10280","repo":"ytti/oxidized","slug":"configuration-rest-is-deprecated-migrate-to-e","errorCode":null,"errorMessage":"configuration: \"rest\" is deprecated. Migrate to \"extensions.oxidized-web\" and remove \"rest\" from the configuration","messagePattern":"configuration: \"rest\" is deprecated\\. Migrate to \"extensions\\.oxidized-web\" and remove \"rest\" from the configuration","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/oxidized/core.rb","lineNumber":38,"sourceCode":"      @need_reload = false\n\n      # If we receive a SIGHUP, queue a reload of the state\n      reload_proc = proc do\n        @need_reload = true\n      end\n      Signals.register_signal('HUP', reload_proc)\n\n      # Load extensions, currently only oxidized-web\n      # We have different namespaces for oxidized-web, which needs to be\n      # adressed if we need a generic way to load extensions:\n      # - gem: oxidized-web\n      # - module: Oxidized::API\n      # - path: oxidized/web\n      # - entrypoint: Oxidized::API::Web.new(nodes, configuration)\n\n      # Initialize oxidized-web if requested\n      if Oxidized.config.has_key? 'rest'\n        logger.warn(\n          'configuration: \"rest\" is deprecated. Migrate to ' \\\n          '\"extensions.oxidized-web\" and remove \"rest\" from the configuration'\n        )\n        configuration = Oxidized.config.rest\n      elsif Oxidized.config.extensions &&\n            Oxidized.config.extensions['oxidized-web']&.load?\n        # This comment stops rubocop complaining about Style/IfUnlessModifier\n        configuration = Oxidized.config.extensions['oxidized-web']\n      end\n\n      if configuration\n        begin\n          require 'oxidized/web'\n        rescue LoadError\n          raise OxidizedError,\n                'oxidized-web not found: install it or disable it by ' \\\n                'removing \"rest\" and \"extensions.oxidized-web\" from your ' \\\n                'configuration'","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/ytti/oxidized/blob/687ed4262d9d21e54662e872e2383386d8498f7b/lib/oxidized/core.rb#L20-L56","documentation":"Error \"configuration: \"rest\" is deprecated. Migrate to \"extensions.oxidized-web\" and remove \"rest\" from the configuration\" thrown in ytti/oxidized.","triggerScenarios":"Thrown at lib/oxidized/core.rb:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"687ed4262d9d21e54662e872e2383386d8498f7b","analyzedAt":"2026-08-23T11:19:42.084Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}