{"record":{"id":"bfa7863df0474e3a","repo":"usebruno/bruno","slug":"unsupported-item-type-item-type","errorCode":null,"errorMessage":"Unsupported item type: ${item.type}","messagePattern":"Unsupported item type: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-cli/src/utils/collection.js","lineNumber":663,"sourceCode":"          url: item.request?.url || '',\n          headers: item.request?.headers || [],\n          params: item.request?.params || [],\n          auth: item.request?.auth || {},\n          body: item.request?.body || {},\n          script: item.request?.script || {},\n          vars: item.request?.vars || { req: [], res: [] },\n          assertions: item.request?.assertions || [],\n          tests: item.request?.tests || '',\n          docs: item.request?.docs || ''\n        },\n        examples: item.examples || []\n      };\n\n      // Convert to YML format and write to file\n      const content = stringifyRequest(itemJson, { format });\n      safeWriteFileSync(path.join(currentPath, sanitizedFilename), content);\n    } else {\n      throw new Error(`Unsupported item type: ${item.type}`);\n    }\n  }\n};\n\nconst sortByNameThenSequence = (items) => {\n  const isSeqValid = (seq) => Number.isFinite(seq) && Number.isInteger(seq) && seq > 0;\n\n  // Sort folders alphabetically by name\n  const alphabeticallySorted = [...items].sort((a, b) => a.name && b.name && a.name.localeCompare(b.name));\n\n  // Extract folders without 'seq'\n  const withoutSeq = alphabeticallySorted.filter((f) => !isSeqValid(f['seq']));\n\n  // Extract folders with 'seq' and sort them by 'seq'\n  const withSeq = alphabeticallySorted.filter((f) => isSeqValid(f['seq'])).sort((a, b) => a.seq - b.seq);\n\n  const sortedItems = withoutSeq;\n","sourceCodeStart":645,"sourceCodeEnd":681,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-cli/src/utils/collection.js#L645-L681","documentation":"Error \"Unsupported item type: ${item.type}\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-cli/src/utils/collection.js:663 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported item type (http, graphql, etc.) in the collection definition.","Update bruno-cli if the item type comes from a newer collection format."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}