{"record":{"id":"fc382e02e36076c0","repo":"puppetlabs/puppet","slug":"author-must-be-a-string-use-multiple-statements-f","errorCode":null,"errorMessage":"author must be a string; use multiple statements for multiple authors","messagePattern":"author must be a string; use multiple statements for multiple authors","errorType":"validation","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/interface/documentation.rb","lineNumber":207,"sourceCode":"      @short_description\n    end\n\n    # @overload author(value)\n    #   Adds an author to the documentation for this object. To set\n    #   multiple authors, call this once for each author.\n    #   @param value [String] the name of the author\n    #   @api public\n    #   @dsl Faces\n    # @overload author\n    #   Returns a list of authors\n    #   @return [String, nil] The names of all authors separated by\n    #     newlines, or `nil` if no authors have been set.\n    #   @api private\n    def author(value = nil)\n      unless value.nil? then\n        unless value.is_a? String\n          # TRANSLATORS 'author' is an attribute name and should not be translated\n          raise ArgumentError, _('author must be a string; use multiple statements for multiple authors')\n        end\n\n        if value =~ /\\n/ then\n          # TRANSLATORS 'author' is an attribute name and should not be translated\n          raise ArgumentError, _('author should be a single line; use multiple statements for multiple authors')\n        end\n\n        @authors.push(Puppet::Interface::DocGen.strip_whitespace(value))\n      end\n      @authors.empty? ? nil : @authors.join(\"\\n\")\n    end\n\n    # Returns a list of authors. See {author}.\n    # @return [String] The list of authors, separated by newlines.\n    # @api private\n    def authors\n      @authors\n    end","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/interface/documentation.rb#L189-L225","documentation":"Error \"author must be a string; use multiple statements for multiple authors\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/interface/documentation.rb:207 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":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}