swagger-api/swagger-ui · error · Error
paramToIdentifier: received a non-Im.Map parameter as input
Error message
paramToIdentifier: received a non-Im.Map parameter as input
What it means
Error "paramToIdentifier: received a non-Im.Map parameter as input" thrown in swagger-api/swagger-ui.
When it happens
Trigger: Thrown at src/core/utils/index.js:775 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of swagger-api/swagger-ui@0ad38e9c47 (2026-08-21).
Data as JSON: /api/errors/735762a315eba0d2.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/utils/index.js:774
if(thing === null || thing === undefined) {
return ""
}
return thing.toString()
}
export function numberToString(thing) {
if(typeof thing === "number") {
return thing.toString()
}
return thing
}
export function paramToIdentifier(param, { returnAll = false, allowHashes = true } = {}) {
if(!Map.isMap(param)) {
throw new Error("paramToIdentifier: received a non-Map parameter as input")
}
const paramName = param.get("name")
const paramIn = param.get("in")
let generatedIdentifiers = []
// Generate identifiers in order of most to least specificity
if (param && param.hashCode && paramIn && paramName && allowHashes) {
generatedIdentifiers.push(`${paramIn}.${paramName}.hash-${param.hashCode()}`)
}
if(paramIn && paramName) {
generatedIdentifiers.push(`${paramIn}.${paramName}`)
}
generatedIdentifiers.push(paramName)
// Return the most preferred identifier, or all if requestedView on GitHub (pinned to 0ad38e9c47)