{"record":{"id":"e19564e23f8e1c37","repo":"puppetlabs/puppet","slug":"no-name-authority-is-declared-in-typeset-name","errorCode":null,"errorMessage":"No 'name_authority' is declared in TypeSet '#{name}' and it cannot be inferred","messagePattern":"No 'name_authority' is declared in TypeSet '#(.+?)' and it cannot be inferred","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/pops/types/p_type_set_type.rb","lineNumber":387,"sourceCode":"        })\n\n  protected\n\n  # @api_private\n  def _assignable?(o, guard)\n    instance_of?(o.class) && (self == DEFAULT || eql?(o))\n  end\n\n  private\n\n  def resolve_name_authority(init_hash, loader)\n    name_auth = @name_authority\n    if name_auth.nil?\n      name_auth = init_hash[KEY_NAME_AUTHORITY]\n      name_auth = loader.name_authority if name_auth.nil? && loader.is_a?(TypeSetLoader)\n      if name_auth.nil?\n        name = @name || init_hash[KEY_NAME]\n        raise ArgumentError, \"No 'name_authority' is declared in TypeSet '#{name}' and it cannot be inferred\"\n      end\n    end\n    name_auth\n  end\nend\nend\nend\n","sourceCodeStart":369,"sourceCodeEnd":395,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/pops/types/p_type_set_type.rb#L369-L395","documentation":"resolve_name_authority found no name_authority on the TypeSet itself, in its init hash, or from a TypeSetLoader, so the TypeSet's types cannot be placed in a namespaced registry.","triggerScenarios":"Thrown at lib/puppet/pops/types/p_type_set_type.rb:387 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a 'name_authority' key to the TypeSet declaration hash","Load the TypeSet through a TypeSetLoader that carries a name_authority","Set name_authority explicitly when constructing the PTypeSetType"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","contentChangedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}