{"record":{"id":"735762a315eba0d2","repo":"swagger-api/swagger-ui","slug":"paramtoidentifier-received-a-non-im-map-parameter","errorCode":null,"errorMessage":"paramToIdentifier: received a non-Im.Map parameter as input","messagePattern":"paramToIdentifier: received a non-Im\\.Map parameter as input","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/core/utils/index.js","lineNumber":775,"sourceCode":"\n  if(thing === null || thing === undefined) {\n    return \"\"\n  }\n\n  return thing.toString()\n}\n\nexport function numberToString(thing) {\n  if(typeof thing === \"number\") {\n    return thing.toString()\n  }\n\n  return thing\n}\n\nexport function paramToIdentifier(param, { returnAll = false, allowHashes = true } = {}) {\n  if(!Im.Map.isMap(param)) {\n    throw new Error(\"paramToIdentifier: received a non-Im.Map parameter as input\")\n  }\n  const paramName = param.get(\"name\")\n  const paramIn = param.get(\"in\")\n\n  let generatedIdentifiers = []\n\n  // Generate identifiers in order of most to least specificity\n\n  if (param && param.hashCode && paramIn && paramName && allowHashes) {\n    generatedIdentifiers.push(`${paramIn}.${paramName}.hash-${param.hashCode()}`)\n  }\n\n  if(paramIn && paramName) {\n    generatedIdentifiers.push(`${paramIn}.${paramName}`)\n  }\n\n  generatedIdentifiers.push(paramName)\n","sourceCodeStart":757,"sourceCodeEnd":793,"githubUrl":"https://github.com/swagger-api/swagger-ui/blob/f340fc1cc1f7d7540772078cb9752791af25520b/src/core/utils/index.js#L757-L793","documentation":"Error \"paramToIdentifier: received a non-Im.Map parameter as input\" thrown in swagger-api/swagger-ui.","triggerScenarios":"Thrown at src/core/utils/index.js:775 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":"f340fc1cc1f7d7540772078cb9752791af25520b","analyzedAt":"2026-08-21T00:07:58.308Z","schemaVersion":2},"datasetVersion":"2026-08-21T08:17:14.275Z"}