ytti/oxidized · error · ArgumentError

inputs must be an array containing symbols or arrays of symb

Error message

inputs must be an array containing symbols or arrays of symbols

What it means

Error "inputs must be an array containing symbols or arrays of symbols" thrown in ytti/oxidized.

Source

Thrown at lib/oxidized/model/dslsetup.rb:82

      end

      def metadata(position, value = nil, &block)
        return unless %i[top bottom].include? position

        if block_given?
          @metadata[position] = block
        else
          @metadata[position] = value
        end
      end

      private

      def validate_inputs(list)
        message = "inputs must be an array containing symbols or " \
                  "arrays of symbols"

        raise ArgumentError, message unless list.is_a? Array
        raise ArgumentError, message if list.empty?

        list.each do |group|
          case group
          when Symbol
            # Everything is fine
          when Array
            raise ArgumentError, message if group.empty?

            group.each do |input|
              raise ArgumentError, message unless input.is_a? Symbol
            end
          else
            raise ArgumentError, message
          end
        end
      end
    end

View on GitHub (pinned to 687ed4262d)

When it happens

Trigger: Thrown at lib/oxidized/model/dslsetup.rb:82 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ytti/oxidized@687ed4262d (2026-08-23). Data as JSON: /api/errors/d1784ada5054776c. Report an issue: GitHub.