[{"data":1,"prerenderedAt":2964,"buildId":2965},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics":3},{"id":4,"title":5,"body":6,"description":2946,"extension":2947,"frontmatter":2948,"heading":2953,"meta":2955,"navigation":2957,"order":2951,"path":2958,"seo":2959,"sitemap":2960,"source":2961,"stem":2962,"__hash__":2963},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics.md","Diagnostics - Kubb error codes and fixes",{"type":7,"value":8,"toc":2866},"minimark",[9,13,110,113,161,172,179,184,211,225,229,233,236,247,251,257,269,273,276,286,290,300,314,318,321,326,330,333,342,346,369,383,387,397,402,406,421,434,438,452,457,461,471,476,480,483,488,492,502,513,517,526,531,535,541,549,553,561,566,570,577,598,601,604,617,621,624,633,637,649,657,661,664,696,720,724,734,743,747,753,770,774,786,797,801,807,812,816,826,834,838,841,849,853,904,931,935,987,996,999,1002,1009,1013,1019,1038,1041,1047,1058,1062,1072,1087,1091,1101,1106,1110,1115,1129,1133,1152,1165,1169,1172,1180,1184,1198,1214,1218,1231,1242,1246,1249,1258,1262,1265,1274,1278,1281,1294,1298,1301,1310,1314,1317,1330,1334,1343,1368,1371,1376,1388,1392,1396,1405,1413,1417,1433,1441,1445,1477,1484,1488,1491,1507,1511,1528,1538,1542,1554,1567,1571,1577,1582,1586,1592,1600,1604,1611,1620,1623,1627,1634,1639,1643,1656,1661,1665,1672,1676,1680,1687,1692,1695,1701,2137,2313,2326,2330,2333,2342,2366,2369,2372,2771,2775,2786,2856],[10,11,12],"p",{},"A Kubb diagnostic tells you what went wrong, where in the spec, and how to fix it. Its stable code links to its entry here.",[14,15,16,52],"code-group",{},[17,18,23],"pre",{"language":19,"filename":20,"code":21,"class":22},"text","Terminal"," ✖ Could not find a definition for #\u002Fcomponents\u002Fschemas\u002FOwner. KUBB_REF_NOT_FOUND\n at petStore.yaml:336:17\n fix Add the schema under `components.schemas`, or fix the `$ref`. Run `kubb validate` to check the spec.\n ↳ Learn more kubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-ref-not-found","highlights",[24,25,27,36,37,36,42,36,47],"code",{"class":26},"language-text",[28,29,32],"span",{"class":30,"style":31},"line","display: inline",[28,33,35],{"style":34},"color:#24292e;--hls-dark:#e1e4e8"," ✖ Could not find a definition for #\u002Fcomponents\u002Fschemas\u002FOwner. KUBB_REF_NOT_FOUND","\n",[28,38,39],{"class":30,"style":31},[28,40,41],{"style":34}," at petStore.yaml:336:17",[28,43,44],{"class":30,"style":31},[28,45,46],{"style":34}," fix Add the schema under `components.schemas`, or fix the `$ref`. Run `kubb validate` to check the spec.",[28,48,49],{"class":30,"style":31},[28,50,51],{"style":34}," ↳ Learn more kubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-ref-not-found",[17,53,56],{"language":19,"filename":54,"code":55,"class":22},"Agent","error KUBB_REF_NOT_FOUND: Could not find a definition for #\u002Fcomponents\u002Fschemas\u002FOwner.\n at: petStore.yaml:336:17 (#\u002Fcomponents\u002Fschemas\u002FOwner)\n why: A `$ref` could not be resolved in the source document.\n fix: Add the schema under `components.schemas`, or fix the `$ref`. Run `kubb validate` to check the spec.\n docs: https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-ref-not-found\n✗ Generation failed 202ms\n\n 28 files generated\n Plugins 3 passed\n Issues 1 error\n Target .\u002Fsrc\u002Fgen",[24,57,58,36,63,36,68,36,73,36,78,36,83,36,88,36,90,36,95,36,100,36,105],{"class":26},[28,59,60],{"class":30,"style":31},[28,61,62],{"style":34},"error KUBB_REF_NOT_FOUND: Could not find a definition for #\u002Fcomponents\u002Fschemas\u002FOwner.",[28,64,65],{"class":30,"style":31},[28,66,67],{"style":34}," at: petStore.yaml:336:17 (#\u002Fcomponents\u002Fschemas\u002FOwner)",[28,69,70],{"class":30,"style":31},[28,71,72],{"style":34}," why: A `$ref` could not be resolved in the source document.",[28,74,75],{"class":30,"style":31},[28,76,77],{"style":34}," fix: Add the schema under `components.schemas`, or fix the `$ref`. Run `kubb validate` to check the spec.",[28,79,80],{"class":30,"style":31},[28,81,82],{"style":34}," docs: https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-ref-not-found",[28,84,85],{"class":30,"style":31},[28,86,87],{"style":34},"✗ Generation failed 202ms",[28,89],{"class":30,"style":31},[28,91,92],{"class":30,"style":31},[28,93,94],{"style":34}," 28 files generated",[28,96,97],{"class":30,"style":31},[28,98,99],{"style":34}," Plugins 3 passed",[28,101,102],{"class":30,"style":31},[28,103,104],{"style":34}," Issues 1 error",[28,106,107],{"class":30,"style":31},[28,108,109],{"style":34}," Target .\u002Fsrc\u002Fgen",[10,111,112],{},"A terminal gets the first format. An AI agent, CI, or a pipe gets the second, with the reporting plugin in brackets after the code.",[114,115,116,129],"table",{},[117,118,119],"thead",{},[120,121,122,126],"tr",{},[123,124,125],"th",{},"Severity",[123,127,128],{},"Effect",[130,131,132,145,153],"tbody",{},[120,133,134,138],{},[135,136,137],"td",{},"Error",[135,139,140,141,144],{},"Fails the run. ",[24,142,143],{},"kubb generate"," exits with code 1.",[120,146,147,150],{},[135,148,149],{},"Warning",[135,151,152],{},"Reported. The run continues.",[120,154,155,158],{},[135,156,157],{},"Info",[135,159,160],{},"Advisory. Never fails the run.",[10,162,163,164,171],{},"To hide a warning or info code, list it in ",[165,166,168],"a",{"href":167},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#diagnostics",[24,169,170],{},"diagnostics.ignore",". Errors cannot be hidden.",[10,173,174,178],{},[165,175,177],{"href":176},"#diagnostic-details","Diagnostic details"," covers rarer cases per code.",[180,181,183],"h2",{"id":182},"crashes","Crashes",[10,185,186,189,190,189,193,189,196,199,200,203,204,199,207,210],{},[24,187,188],{},"KUBB_ADAPTER_FAILED",", ",[24,191,192],{},"KUBB_PARSER_FAILED",[24,194,195],{},"KUBB_PLUGIN_FAILED",[24,197,198],{},"KUBB_INTERNAL_ERROR",", and ",[24,201,202],{},"KUBB_UNKNOWN"," mark a crash. The agent format, ",[24,205,206],{},"--verbose",[24,208,209],{},"--reporter json"," show its stack.",[10,212,213,214,217,218,224],{},"Report it with the stack and a spec fragment that reproduces it. Kubb prints a ",[24,215,216],{},"report:"," link when the extension sets ",[165,219,221],{"href":220},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fextensions#meta",[24,222,223],{},"meta.issues",".",[180,226,228],{"id":227},"errors","Errors",[230,231,188],"h3",{"id":232},"kubb-adapter-failed",[10,234,235],{},"The adapter crashed while parsing the input.",[10,237,238,242,243,224],{},[239,240,241],"strong",{},"Fix:"," Check the input and adapter options, or report the ",[165,244,246],{"href":245},"#crashes","crash",[230,248,250],{"id":249},"kubb-adapter-required","KUBB_ADAPTER_REQUIRED",[10,252,253,256],{},[24,254,255],{},"@kubb\u002Fplugin-redoc"," runs without the OpenAPI adapter.",[10,258,259,261,262,265,266,224],{},[239,260,241],{}," Set ",[24,263,264],{},"adapter: adapterOas()"," in ",[24,267,268],{},"kubb.config.ts",[230,270,272],{"id":271},"kubb-barrel-duplicate-export","KUBB_BARREL_DUPLICATE_EXPORT",[10,274,275],{},"Two files in one barrel folder export the same name.",[10,277,278,280,281,285],{},[239,279,241],{}," Rename one declaration, change the ",[165,282,284],{"href":283},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#resolver","resolver",", or split the output folders.",[230,287,289],{"id":288},"kubb-clean-root","KUBB_CLEAN_ROOT",[10,291,292,295,296,299],{},[24,293,294],{},"output.path"," is the project root or a parent of it, so ",[24,297,298],{},"output.clean"," would delete your source.",[10,301,302,304,305,307,308,311,312,224],{},[239,303,241],{}," Point ",[24,306,294],{}," at a generated folder such as ",[24,309,310],{},".\u002Fsrc\u002Fgen",", or turn off ",[24,313,298],{},[230,315,317],{"id":316},"kubb-config-edit-failed","KUBB_CONFIG_EDIT_FAILED",[10,319,320],{},"Kubb could not change the config file safely, for example to add, remove, or turn off a plugin.",[10,322,323,325],{},[239,324,241],{}," Make the change by hand. The message names the edit and why Kubb refused it.",[230,327,329],{"id":328},"kubb-config-failed","KUBB_CONFIG_FAILED",[10,331,332],{},"The config file threw while loading, or exports no configuration.",[10,334,335,337,338,341],{},[239,336,241],{}," Fix the error under ",[24,339,340],{},"caused by:",", and export a config or a list of configs.",[230,343,345],{"id":344},"kubb-config-not-found","KUBB_CONFIG_NOT_FOUND",[10,347,348,349,352,353,356,357,360,361,364,365,368],{},"Kubb found no ",[24,350,351],{},"kubb.config.*"," or ",[24,354,355],{},".kubbrc.*"," file in the folder, its ",[24,358,359],{},".config\u002F"," and ",[24,362,363],{},"configs\u002F"," folders, or a parent folder, and no ",[24,366,367],{},"--config"," path was passed.",[10,370,371,373,374,380,381,224],{},[239,372,241],{}," Run ",[165,375,377],{"href":376},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Finit",[24,378,379],{},"kubb init",", or pass the path with ",[24,382,367],{},[230,384,386],{"id":385},"kubb-format-failed","KUBB_FORMAT_FAILED",[10,388,389,390,396],{},"The ",[165,391,393],{"href":392},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#outputformat",[24,394,395],{},"output.format"," tool failed. Kubb still writes the files.",[10,398,399,401],{},[239,400,241],{}," Run the formatter on the output folder to see the error.",[230,403,405],{"id":404},"kubb-git-input-failed","KUBB_GIT_INPUT_FAILED",[10,407,408,409,416,417,420],{},"A ",[165,410,412,413],{"href":411},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#input","git ",[24,414,415],{},"input"," is malformed, or ",[24,418,419],{},"git"," could not fetch it.",[10,422,423,425,426,429,430,433],{},[239,424,241],{}," Use ",[24,427,428],{},"git+\u003Crepo>#\u003Cref>:\u003Cpath>",", and run ",[24,431,432],{},"git fetch --depth 1 \u003Crepo> \u003Cref>"," to see the git error.",[230,435,437],{"id":436},"kubb-incompatible-dependency","KUBB_INCOMPATIBLE_DEPENDENCY",[10,439,440,441,444,445,448,449,224],{},"A configured plugin's ",[24,442,443],{},"meta.version"," is outside the ",[24,446,447],{},"version"," range in another plugin's ",[24,450,451],{},"dependencies",[10,453,454,456],{},[239,455,241],{}," Install a version of either plugin that fits the range.",[230,458,460],{"id":459},"kubb-incompatible-extension","KUBB_INCOMPATIBLE_EXTENSION",[10,462,463,464,352,467,470],{},"An extension's ",[24,465,466],{},"meta.compatibility.kubb",[24,468,469],{},".node"," range excludes the running version.",[10,472,473,475],{},[239,474,241],{}," Upgrade Kubb or Node.js into the range, or install an extension version that supports yours.",[230,477,479],{"id":478},"kubb-inline-failed","KUBB_INLINE_FAILED",[10,481,482],{},"Kubb cannot inline a name imported from an all-inline file, so it skips that file.",[10,484,485,487],{},[239,486,241],{}," Add an inline definition, register a parser with inline support, or stop marking the source as inline.",[230,489,491],{"id":490},"kubb-input-not-found","KUBB_INPUT_NOT_FOUND",[10,493,494,495,497,498,501],{},"Kubb cannot read the ",[24,496,415],{}," file or the ",[24,499,500],{},"kubb generate \u003Cpath>"," path.",[10,503,504,506,507,224],{},[239,505,241],{}," Check that the file exists and is readable. Relative paths resolve against ",[165,508,510],{"href":509},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#root",[24,511,512],{},"root",[230,514,516],{"id":515},"kubb-input-request-failed","KUBB_INPUT_REQUEST_FAILED",[10,518,519,520,352,522,525],{},"A URL ",[24,521,415],{},[24,523,524],{},"$ref"," answers with a 4xx or 5xx status.",[10,527,528,530],{},[239,529,241],{}," Open the URL to see the answer. Kubb sends no credentials, so for a 401 or 403, use a local copy.",[230,532,534],{"id":533},"kubb-input-required","KUBB_INPUT_REQUIRED",[10,536,537,538,540],{},"An adapter is set, but ",[24,539,415],{}," is empty.",[10,542,543,261,545,224],{},[239,544,241],{},[165,546,547],{"href":411},[24,548,415],{},[230,550,552],{"id":551},"kubb-input-unreachable","KUBB_INPUT_UNREACHABLE",[10,554,519,555,557,558,560],{},[24,556,415],{},", a ",[24,559,524],{}," URL, or the registry never answered.",[10,562,563,565],{},[239,564,241],{}," Check that the host is up and reachable from this machine, through any VPN or proxy.",[230,567,569],{"id":568},"kubb-insecure-url","KUBB_INSECURE_URL",[10,571,572,573,576],{},"A URL that gets credentials or installs packages uses plain ",[24,574,575],{},"http:\u002F\u002F"," on another machine, or is an IP address where Kubb needs a hostname.",[10,578,579,425,581,584,585,587,588,189,591,594,595,224],{},[239,580,241],{},[24,582,583],{},"https:\u002F\u002F",". Plain ",[24,586,575],{}," works only for ",[24,589,590],{},"localhost",[24,592,593],{},"127.0.0.1",", or ",[24,596,597],{},"[::1]",[230,599,198],{"id":600},"kubb-internal-error",[10,602,603],{},"A bug in Kubb.",[10,605,606,608,609,611,612,616],{},[239,607,241],{}," Rerun with ",[24,610,206],{}," for the stack, then report it on ",[165,613,615],{"href":614},"https:\u002F\u002Fgithub.com\u002Fkubb-labs\u002Fkubb\u002Fissues","GitHub"," with the spec and config.",[230,618,620],{"id":619},"kubb-invalid-argument","KUBB_INVALID_ARGUMENT",[10,622,623],{},"A flag, argument, or environment variable is missing or has a value the command cannot use.",[10,625,626,628,629,632],{},[239,627,241],{}," Pass the value the message asks for. ",[24,630,631],{},"--help"," lists the flags.",[230,634,636],{"id":635},"kubb-invalid-document","KUBB_INVALID_DOCUMENT",[10,638,389,639,641,642,352,645,648],{},[24,640,415],{}," has a syntax error, no ",[24,643,644],{},"openapi",[24,646,647],{},"swagger"," version, or a version Kubb cannot upgrade to OpenAPI 3.1.",[10,650,651,653,654,656],{},[239,652,241],{}," Fix the syntax at the reported line, and point ",[24,655,415],{}," at a Swagger 2.0 or OpenAPI 3.0 to 3.2 spec.",[230,658,660],{"id":659},"kubb-invalid-config","KUBB_INVALID_CONFIG",[10,662,663],{},"One of these is wrong, and Kubb stops before it generates:",[665,666,667,675,680],"ul",{},[668,669,670,671,674],"li",{},"The config file exports something other than a config object or a non-empty array of them, such as ",[24,672,673],{},"null"," from a config function. The message names the file.",[668,676,677,678,224],{},"The config has no ",[24,679,294],{},[668,681,682,352,686,692,693,224],{},[165,683,684],{"href":392},[24,685,395],{},[165,687,689],{"href":688},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#outputlint",[24,690,691],{},"output.lint"," names a tool Kubb does not know, such as ",[24,694,695],{},"'prettierr'",[10,697,698,700,701,704,705,707,708,360,710,712,713,189,716,719],{},[239,699,241],{}," Export ",[24,702,703],{},"defineConfig({ ... })",", or a function that returns one. Set ",[24,706,294],{},", and set ",[24,709,395],{},[24,711,691],{}," to ",[24,714,715],{},"'auto'",[24,717,718],{},"false",", or a tool the message lists.",[230,721,723],{"id":722},"kubb-invalid-plugin-options","KUBB_INVALID_PLUGIN_OPTIONS",[10,725,726,727,352,730,733],{},"A plugin's options cannot work as given, such as ",[24,728,729],{},"group",[24,731,732],{},"sdk.mode: 'tag'"," with file output. The message names the case.",[10,735,736,738,739,224],{},[239,737,241],{}," Change what the message names. See ",[165,740,742],{"href":741},"#invalid-plugin-options","Invalid plugin options",[230,744,746],{"id":745},"kubb-invalid-server-variable","KUBB_INVALID_SERVER_VARIABLE",[10,748,749,750,224],{},"A server variable resolves to a value outside its ",[24,751,752],{},"enum",[10,754,755,757,758,760,761,764,765,352,768,224],{},[239,756,241],{}," Pick an ",[24,759,752],{}," value in the adapter's ",[24,762,763],{},"server.variables",", or fix the spec's ",[24,766,767],{},"default",[24,769,752],{},[230,771,773],{"id":772},"kubb-legacy-input","KUBB_LEGACY_INPUT",[10,775,776,778,779,352,782,785],{},[24,777,415],{}," is a v4 ",[24,780,781],{},"{ path }",[24,783,784],{},"{ data }"," wrapper.",[10,787,788,790,791,352,794,224],{},[239,789,241],{}," Pass the value directly, such as ",[24,792,793],{},"input: '.\u002FpetStore.yaml'",[24,795,796],{},"input: spec",[230,798,800],{"id":799},"kubb-lint-failed","KUBB_LINT_FAILED",[10,802,389,803,396],{},[165,804,805],{"href":688},[24,806,691],{},[10,808,809,811],{},[239,810,241],{}," Run the linter on the output folder, and relax its rules for generated files.",[230,813,815],{"id":814},"kubb-missing-dependency","KUBB_MISSING_DEPENDENCY",[10,817,818,819,821,822,825],{},"A plugin lists another in ",[24,820,451],{}," without ",[24,823,824],{},"optional: true",", and the config lacks it.",[10,827,828,830,831,224],{},[239,829,241],{}," Install that plugin and add it to ",[24,832,833],{},"plugins",[230,835,837],{"id":836},"kubb-module-not-found","KUBB_MODULE_NOT_FOUND",[10,839,840],{},"A package Kubb or an extension loads at run time is missing, or its installed version does not work.",[10,842,843,845,846,848],{},[239,844,241],{}," Install the package the message names. ",[24,847,340],{}," shows the load error.",[230,850,852],{"id":851},"kubb-moved-to-kit","KUBB_MOVED_TO_KIT",[10,854,855,856,859,860,189,863,189,866,189,869,189,872,189,875,189,878,189,881,352,884,887,888,891,892,894,895,897,898,901,902,224],{},"Code called a resolver, generator or macro helper from ",[24,857,858],{},"@kubb\u002Fcore",": ",[24,861,862],{},"addGenerator",[24,864,865],{},"setResolver",[24,867,868],{},"setMacros",[24,870,871],{},"addMacro",[24,873,874],{},"Resolver",[24,876,877],{},"createResolver",[24,879,880],{},"defineResolver",[24,882,883],{},"defineGenerator",[24,885,886],{},"toFilePath",". These moved to ",[24,889,890],{},"@kubb\u002Fkit",". ",[24,893,890],{}," 5.23.1 still imports them from core, so it reports this error when it loads next to a newer ",[24,896,858],{},". The deprecated ",[24,899,900],{},"ctx.driver.getResolver(name)"," also reports it when the plugin has no resolver set with ",[24,903,865],{},[10,905,906,908,909,912,913,915,916,919,920,923,924,926,927,930],{},[239,907,241],{}," Import the helper from ",[24,910,911],{},"kubb\u002Fkit",", and replace ",[24,914,900],{}," with ",[24,917,918],{},"ctx.getResolver(name)"," in a template, or with ",[24,921,922],{},"getResolver(name)"," from ",[24,925,911],{}," in any other hook, such as a visit hook. If a plugin triggers it, run ",[24,928,929],{},"pnpm update \"@kubb\u002F*\""," so every @kubb package is on one version.",[230,932,934],{"id":933},"kubb-no-context","KUBB_NO_CONTEXT",[10,936,408,937,939,940,943,944,189,947,950,951,954,955,189,958,189,961,360,964,967,968,923,971,891,973,189,976,360,979,982,983,360,985,224],{},[24,938,911],{}," composable such as ",[24,941,942],{},"useKubb()"," ran outside a plugin hook: ",[24,945,946],{},"setup",[24,948,949],{},"kubb:plugin:setup",", a hook in the plugin's ",[24,952,953],{},"hooks"," map or a visit hook. ",[24,956,957],{},"addTemplate()",[24,959,960],{},"setResolver()",[24,962,963],{},"addMacro()",[24,965,966],{},"setMacros()"," also report it for a plugin defined with ",[24,969,970],{},"defineExtension",[24,972,858],{},[24,974,975],{},"setOptions()",[24,977,978],{},"useOptions()",[24,980,981],{},"injectFile()"," report it in any hook other than ",[24,984,946],{},[24,986,949],{},[10,988,989,991,992,923,994,224],{},[239,990,241],{}," Call it inside a plugin hook, or in code the hook awaits. Define the plugin with ",[24,993,970],{},[24,995,911],{},[230,997,192],{"id":998},"kubb-parser-failed",[10,1000,1001],{},"A parser crashed while printing a generated file.",[10,1003,1004,1006,1007,224],{},[239,1005,241],{}," Check the parser options, then report the ",[165,1008,246],{"href":245},[230,1010,1012],{"id":1011},"kubb-path-traversal","KUBB_PATH_TRAVERSAL",[10,1014,1015,1016,1018],{},"A resolved path escapes ",[24,1017,294],{},", so Kubb refuses to write it.",[10,1020,1021,1023,1024,189,1026,1029,1030,1033,1034,1037],{},[239,1022,241],{}," Keep ",[24,1025,294],{},[24,1027,1028],{},"group.name",", and resolver ",[24,1031,1032],{},"file.path"," results inside the output folder. Strip ",[24,1035,1036],{},".."," and separators from spec names.",[230,1039,195],{"id":1040},"kubb-plugin-failed",[10,1042,1043,1044,224],{},"A plugin threw, or reported an error through ",[24,1045,1046],{},"ctx.error",[10,1048,1049,1051,1052,1055,1056,224],{},[239,1050,241],{}," Check the plugin options and the node at ",[24,1053,1054],{},"at:",", then report the ",[165,1057,246],{"href":245},[230,1059,1061],{"id":1060},"kubb-plugin-not-found","KUBB_PLUGIN_NOT_FOUND",[10,1063,1064,1065,1071],{},"A plugin requires another that is not in the config. ",[165,1066,1068],{"href":1067},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fresolvers",[24,1069,1070],{},"getResolver"," also throws it for a name that is neither a plugin in the config nor provided.",[10,1073,1074,1076,1077,1079,1080,1082,1083,1086],{},[239,1075,241],{}," Add it to ",[24,1078,833],{}," in any order, or remove the plugin that needs it. For ",[24,1081,1070],{},", fix the name. Do not add ",[24,1084,1085],{},"@kubb\u002Fplugin-oas",": in v5 the adapter reads OpenAPI.",[230,1088,1090],{"id":1089},"kubb-post-generate-failed","KUBB_POST_GENERATE_FAILED",[10,1092,1093,1094,1100],{},"An ",[165,1095,1097],{"href":1096},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#outputpostgenerate",[24,1098,1099],{},"output.postGenerate"," command exited non-zero. Kubb still writes the files.",[10,1102,1103,1105],{},[239,1104,241],{}," Run the command from the project root to see the error.",[230,1107,1109],{"id":1108},"kubb-ref-not-found","KUBB_REF_NOT_FOUND",[10,1111,408,1112,1114],{},[24,1113,524],{}," points at a missing definition, or a file or URL Kubb cannot read.",[10,1116,1117,1119,1120,1122,1123,224],{},[239,1118,241],{}," Add the definition or file, or fix the ",[24,1121,524],{},", then run ",[165,1124,1126],{"href":1125},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fvalidate",[24,1127,1128],{},"kubb validate",[230,1130,1132],{"id":1131},"kubb-access-refused","KUBB_ACCESS_REFUSED",[10,1134,389,1135,1138,1139,1141,1142,1144,1145,1148,1149,1151],{},[24,1136,1137],{},"security"," rules of the run refuse a local file or a host. Most often a ",[24,1140,524],{}," points at it, but a URL or git ",[24,1143,415],{}," and the requests the CLI makes itself report it too. A secret file such as ",[24,1146,1147],{},".env"," or a key is always refused. A file outside the project or a host that is not public is refused unless ",[24,1150,1137],{}," allows it.",[10,1153,1154,1156,1157,265,1160,224],{},[239,1155,241],{}," Move the file inside the project, inline the schema, or serve it from a public URL. When the message names a host, add it to ",[24,1158,1159],{},"net.allow",[165,1161,1163],{"href":1162},"\u002Fdocs\u002F5.x\u002Freference\u002Fsecurity",[24,1164,1137],{},[230,1166,1168],{"id":1167},"kubb-registry-failed","KUBB_REGISTRY_FAILED",[10,1170,1171],{},"The extension registry returned no usable list of extensions.",[10,1173,1174,304,1176,1179],{},[239,1175,241],{},[24,1177,1178],{},"KUBB_REGISTRY"," at a Kubb registry, or unset it.",[230,1181,1183],{"id":1182},"kubb-render-failed","KUBB_RENDER_FAILED",[10,1185,1186,1187,352,1190,1193,1194,1197],{},"A JSX template returned something the renderer cannot use: text outside ",[24,1188,1189],{},"\u003CCode>",[24,1191,1192],{},"\u003CRaw>",", a Promise from an ",[24,1195,1196],{},"async"," component, or a React element.",[10,1199,1200,1202,1203,712,1206,1209,1210,352,1212,224],{},[239,1201,241],{}," Keep components synchronous, set ",[24,1204,1205],{},"jsxImportSource",[24,1207,1208],{},"@kubb\u002Frenderer-jsx",", and wrap text in ",[24,1211,1189],{},[24,1213,1192],{},[230,1215,1217],{"id":1216},"kubb-snapshot-failed","KUBB_SNAPSHOT_FAILED",[10,1219,1220,1226,1227,1230],{},[165,1221,1223],{"href":1222},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio",[24,1224,1225],{},"kubb studio snapshot"," could not package the output: it is over the size limit, two files share a path, a path is too long, or the ",[24,1228,1229],{},"dist"," build failed.",[10,1232,1233,1235,1236,352,1239,224],{},[239,1234,241],{}," Follow the fix in the message, such as generating fewer files with ",[24,1237,1238],{},"include",[24,1240,1241],{},"exclude",[230,1243,1245],{"id":1244},"kubb-studio-command-refused","KUBB_STUDIO_COMMAND_REFUSED",[10,1247,1248],{},"The agent refused a command from Kubb Studio: a permission is missing, another command is running, or the request is invalid.",[10,1250,1251,1253,1254,1257],{},[239,1252,241],{}," Grant the permission with ",[24,1255,1256],{},"kubb studio permissions",", or wait for the running command.",[230,1259,1261],{"id":1260},"kubb-studio-incompatible","KUBB_STUDIO_INCOMPATIBLE",[10,1263,1264],{},"Kubb Studio needs a newer agent than this Kubb version.",[10,1266,1267,1269,1270,1273],{},[239,1268,241],{}," Upgrade ",[24,1271,1272],{},"kubb"," in the project, or pull the latest Kubb agent image.",[230,1275,1277],{"id":1276},"kubb-studio-not-paired","KUBB_STUDIO_NOT_PAIRED",[10,1279,1280],{},"This machine has no agent token for the Studio URL and cannot pair here, as in CI.",[10,1282,1283,373,1285,1288,1289,352,1291,224],{},[239,1284,241],{},[24,1286,1287],{},"kubb studio login"," on a machine with a browser. In CI, use ",[24,1290,1225],{},[24,1292,1293],{},"KUBB_STUDIO_PAIRING_CODE",[230,1295,1297],{"id":1296},"kubb-studio-protocol","KUBB_STUDIO_PROTOCOL",[10,1299,1300],{},"Kubb Studio answered a pairing or token request without the fields the agent needs.",[10,1302,1303,1305,1306,1309],{},[239,1304,241],{}," Try again later, and update ",[24,1307,1308],{},"@kubb\u002Fcli"," if it keeps failing.",[230,1311,1313],{"id":1312},"kubb-studio-refused","KUBB_STUDIO_REFUSED",[10,1315,1316],{},"Kubb Studio refused a pairing code or an agent token. A code works once, for 5 minutes. A token stops working once it expires or is revoked.",[10,1318,1319,1321,1322,1325,1326,224],{},[239,1320,241],{}," For an agent an MCP client paired, get a new code from the client's ",[24,1323,1324],{},"kubb_studio_connect"," tool. For any other agent, pair again with ",[165,1327,1328],{"href":1222},[24,1329,1287],{},[230,1331,1333],{"id":1332},"kubb-studio-worker-failed","KUBB_STUDIO_WORKER_FAILED",[10,1335,389,1336,1342],{},[165,1337,1339],{"href":1338},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio#background-connection",[24,1340,1341],{},"kubb studio start"," worker could not start, stop, or be verified, or it already runs for this project.",[10,1344,1345,1347,1348,1351,1352,1355,1356,1359,1360,1363,1364,1367],{},[239,1346,241],{}," Read ",[24,1349,1350],{},"worker.log",", whose path ",[24,1353,1354],{},"kubb studio status"," prints. Run ",[24,1357,1358],{},"kubb studio stop"," before a foreground ",[24,1361,1362],{},"kubb studio",", or set ",[24,1365,1366],{},"KUBB_STUDIO_CONTROL_PORT"," when another program holds the port.",[230,1369,202],{"id":1370},"kubb-unknown",[10,1372,1373,1374,224],{},"An error without a Kubb code, such as one a plugin or adapter throws as a plain ",[24,1375,137],{},[10,1377,1378,1380,1381,1383,1384,1387],{},[239,1379,241],{}," Read the message and the ",[24,1382,206],{}," stack. Check the options of the plugin or adapter that threw it, or report it with the ",[24,1385,1386],{},"Environment:"," block.",[180,1389,1391],{"id":1390},"warnings","Warnings",[230,1393,1395],{"id":1394},"kubb-alias-cycle","KUBB_ALIAS_CYCLE",[10,1397,1398,1399,1401,1402,224],{},"Schemas that only ",[24,1400,524],{}," each other form a loop, so Kubb types them as ",[24,1403,1404],{},"unknown",[10,1406,1407,1409,1410,1412],{},[239,1408,241],{}," Give one schema a real definition, or remove the ",[24,1411,524],{}," that closes the loop.",[230,1414,1416],{"id":1415},"kubb-duplicate-discriminator","KUBB_DUPLICATE_DISCRIMINATOR",[10,1418,1419,352,1422,1425,1426,1429,1430,1432],{},[24,1420,1421],{},"oneOf",[24,1423,1424],{},"anyOf"," members share a ",[24,1427,1428],{},"discriminator"," value, so the ",[24,1431,1428],{}," cannot pick a member.",[10,1434,1435,1437,1438,1440],{},[239,1436,241],{}," Give each member its own value, or drop the ",[24,1439,1428],{}," to match by shape.",[230,1442,1444],{"id":1443},"kubb-duplicate-operation-id","KUBB_DUPLICATE_OPERATION_ID",[10,1446,1447,1448,1451,1452,189,1455,1458,1459,360,1462,1465,1466,1469,1470,360,1473,1476],{},"Two operations share an ",[24,1449,1450],{},"operationId",", so Kubb adds a ",[24,1453,1454],{},"_2",[24,1456,1457],{},"_3",", … suffix to each later one. A generated id can collide too: ",[24,1460,1461],{},"\u002Fa-b",[24,1463,1464],{},"\u002Fa\u002Fb"," both get ",[24,1467,1468],{},"get_a-b",". Ids that give the same generated name, such as ",[24,1471,1472],{},"get-pets",[24,1474,1475],{},"getPets",", also count as the same. A suffix never takes an id that another operation declares.",[10,1478,1479,1481,1482,224],{},[239,1480,241],{}," Give each operation its own ",[24,1483,1450],{},[230,1485,1487],{"id":1486},"kubb-invalid-spec","KUBB_INVALID_SPEC",[10,1489,1490],{},"The spec fails OpenAPI schema validation, so the output can be incomplete or wrong.",[10,1492,1493,373,1495,1499,1500,1506],{},[239,1494,241],{},[165,1496,1497],{"href":1125},[24,1498,1128],{}," to list every problem, or set ",[165,1501,1503],{"href":1502},"\u002Fextensions\u002Fkubb-labs\u002Fadapter-oas\u002Foptions#validate",[24,1504,1505],{},"validate: false"," on the adapter to skip the check.",[230,1508,1510],{"id":1509},"kubb-output-passes-skipped","KUBB_OUTPUT_PASSES_SKIPPED",[10,1512,1513,189,1515,594,1517,1519,1520,1523,1524,1527],{},[24,1514,395],{},[24,1516,691],{},[24,1518,1099],{}," is set, but the ",[24,1521,1522],{},"storage"," is not named ",[24,1525,1526],{},"fs",", so Kubb cannot tell that the files are on disk. It skips those passes and the output manifest.",[10,1529,1530,1532,1533,1535,1536,224],{},[239,1531,241],{}," Run the tools yourself after the build, or remove the options. A custom storage that writes ",[24,1534,294],{}," to disk can use the name ",[24,1537,1526],{},[230,1539,1541],{"id":1540},"kubb-outside-output","KUBB_OUTSIDE_OUTPUT",[10,1543,1544,1545,360,1547,1550,1551,1553],{},"A plugin wrote a file outside ",[24,1546,294],{},[24,1548,1549],{},"shared.path",". Kubb still writes it, but ",[24,1552,298],{}," never removes it.",[10,1555,1556,1558,1559,1561,1562,1564,1565,224],{},[239,1557,241],{}," Check the plugin's ",[24,1560,294],{}," and its ",[24,1563,1028],{}," function, so every generated path stays inside ",[24,1566,294],{},[230,1568,1570],{"id":1569},"kubb-plugin-warning","KUBB_PLUGIN_WARNING",[10,1572,1573,1574,224],{},"A plugin reported a non-fatal problem through ",[24,1575,1576],{},"ctx.warn",[10,1578,1579,1581],{},[239,1580,241],{}," Read the message and adjust the input or the plugin options.",[230,1583,1585],{"id":1584},"kubb-shared-file-mismatch","KUBB_SHARED_FILE_MISMATCH",[10,1587,1588,1589,1591],{},"Configs that use the same ",[24,1590,1549],{}," generated different content for the same shared file, so the last config to write it wins.",[10,1593,1594,1596,1597,1599],{},[239,1595,241],{}," Give the configs that use the same ",[24,1598,1549],{}," the same plugin options and banner.",[230,1601,1603],{"id":1602},"kubb-unsupported-format","KUBB_UNSUPPORTED_FORMAT",[10,1605,1606,1607,1610],{},"Kubb has no type for a schema's ",[24,1608,1609],{},"format",", so it uses the base type.",[10,1612,1613,1615,1616,224],{},[239,1614,241],{}," Use a supported format, drop it, or handle it in a custom parser or plugin. When a plugin already handles the format, add the code to ",[165,1617,1618],{"href":167},[24,1619,170],{},[180,1621,157],{"id":1622},"info",[230,1624,1626],{"id":1625},"kubb-deprecated","KUBB_DEPRECATED",[10,1628,1629,1630,1633],{},"The spec uses a schema or operation marked ",[24,1631,1632],{},"deprecated",". Generation is unchanged.",[10,1635,1636,1638],{},[239,1637,241],{}," Move off the deprecated definition when you can.",[230,1640,1642],{"id":1641},"kubb-performance","KUBB_PERFORMANCE",[10,1644,1645,1646,1648,1649,265,1652,224],{},"One plugin's generation time, shown with ",[24,1647,206],{}," and as ",[24,1650,1651],{},"timings",[165,1653,1655],{"href":1654},"#machine-readable-output","Machine-readable output",[10,1657,1658,1660],{},[239,1659,241],{}," None needed.",[230,1662,1664],{"id":1663},"kubb-plugin-info","KUBB_PLUGIN_INFO",[10,1666,1667,1668,1671],{},"A plugin reported a message through ",[24,1669,1670],{},"ctx.info",", shown in the summary and JSON report.",[10,1673,1674,1660],{},[239,1675,241],{},[230,1677,1679],{"id":1678},"kubb-update-available","KUBB_UPDATE_AVAILABLE",[10,1681,1682,1683,224],{},"npm has a newer Kubb than the one running. See ",[165,1684,1686],{"href":1685},"#update-check","Update check",[10,1688,1689,1691],{},[239,1690,241],{}," Update Kubb and your plugins.",[180,1693,1655],{"id":1694},"machine-readable-output",[10,1696,1697,1700],{},[24,1698,1699],{},"kubb generate --reporter json"," prints a JSON array to stdout, one report per config, even for a single config.",[17,1702,1706],{"language":1703,"filename":1704,"code":1705,"class":22},"json","Report","[\n {\n \"name\": \"\",\n \"status\": \"failed\",\n \"plugins\": { \"passed\": 2, \"failed\": [\"plugin-zod\"], \"total\": 3 },\n \"counts\": { \"errors\": 1, \"warnings\": 0, \"infos\": 0 },\n \"filesCreated\": 0,\n \"filesUnchanged\": 0,\n \"filesFromLockfile\": 0,\n \"dryRun\": false,\n \"durationMs\": 312,\n \"output\": \"\u002Fproject\u002Fsrc\u002Fgen\",\n \"timings\": [{ \"plugin\": \"plugin-ts\", \"durationMs\": 84 }],\n \"diagnostics\": [\n {\n \"code\": \"KUBB_REF_NOT_FOUND\",\n \"severity\": \"error\",\n \"message\": \"Could not find a definition for #\u002Fcomponents\u002Fschemas\u002FPet.\",\n \"title\": \"Reference not found\",\n \"cause\": \"A `$ref` could not be resolved in the source document.\",\n \"location\": { \"kind\": \"schema\", \"pointer\": \"#\u002Fcomponents\u002Fschemas\u002FPet\" },\n \"help\": \"Add the schema under components.schemas, or fix the $ref. Run `kubb validate` to check the spec.\",\n \"plugin\": \"plugin-zod\",\n \"docsUrl\": \"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-ref-not-found\"\n }\n ]\n }\n]",[24,1707,1709,36,1715,36,1720,36,1738,36,1752,36,1801,36,1844,36,1857,36,1870,36,1883,36,1896,36,1910,36,1924,36,1958,36,1969,36,1974,36,1989,36,2003,36,2017,36,2031,36,2045,36,2078,36,2092,36,2104,36,2116,36,2123,36,2128,36,2133],{"class":1708},"language-json",[28,1710,1711],{"class":30,"style":31},[28,1712,1714],{"style":1713},"color:#005cc5;--hls-dark:#79b8ff","[",[28,1716,1717],{"class":30,"style":31},[28,1718,1719],{"style":1713}," {",[28,1721,1722,1725,1728,1731,1735],{"class":30,"style":31},[28,1723,1724],{"style":1713}," ",[28,1726,1727],{"style":1713},"\"name\"",[28,1729,859],{"style":1730},"color:#d73a49;--hls-dark:#f97583",[28,1732,1734],{"style":1733},"color:#032f62;--hls-dark:#9ecbff","\"\"",[28,1736,1737],{"style":1730},",",[28,1739,1740,1742,1745,1747,1750],{"class":30,"style":31},[28,1741,1724],{"style":1730},[28,1743,1744],{"style":1713},"\"status\"",[28,1746,859],{"style":1730},[28,1748,1749],{"style":1733},"\"failed\"",[28,1751,1737],{"style":1730},[28,1753,1754,1756,1759,1761,1764,1767,1769,1772,1774,1776,1778,1780,1783,1786,1788,1791,1793,1796,1799],{"class":30,"style":31},[28,1755,1724],{"style":1730},[28,1757,1758],{"style":1713},"\"plugins\"",[28,1760,859],{"style":1730},[28,1762,1763],{"style":1713},"{ ",[28,1765,1766],{"style":1713},"\"passed\"",[28,1768,859],{"style":1730},[28,1770,1771],{"style":1713},"2",[28,1773,189],{"style":1730},[28,1775,1749],{"style":1713},[28,1777,859],{"style":1730},[28,1779,1714],{"style":1713},[28,1781,1782],{"style":1733},"\"plugin-zod\"",[28,1784,1785],{"style":1713},"]",[28,1787,189],{"style":1730},[28,1789,1790],{"style":1713},"\"total\"",[28,1792,859],{"style":1730},[28,1794,1795],{"style":1713},"3 ",[28,1797,1798],{"style":1713},"}",[28,1800,1737],{"style":1730},[28,1802,1803,1805,1808,1810,1812,1815,1817,1820,1822,1825,1827,1830,1832,1835,1837,1840,1842],{"class":30,"style":31},[28,1804,1724],{"style":1730},[28,1806,1807],{"style":1713},"\"counts\"",[28,1809,859],{"style":1730},[28,1811,1763],{"style":1713},[28,1813,1814],{"style":1713},"\"errors\"",[28,1816,859],{"style":1730},[28,1818,1819],{"style":1713},"1",[28,1821,189],{"style":1730},[28,1823,1824],{"style":1713},"\"warnings\"",[28,1826,859],{"style":1730},[28,1828,1829],{"style":1713},"0",[28,1831,189],{"style":1730},[28,1833,1834],{"style":1713},"\"infos\"",[28,1836,859],{"style":1730},[28,1838,1839],{"style":1713},"0 ",[28,1841,1798],{"style":1713},[28,1843,1737],{"style":1730},[28,1845,1846,1848,1851,1853,1855],{"class":30,"style":31},[28,1847,1724],{"style":1730},[28,1849,1850],{"style":1713},"\"filesCreated\"",[28,1852,859],{"style":1730},[28,1854,1829],{"style":1713},[28,1856,1737],{"style":1730},[28,1858,1859,1861,1864,1866,1868],{"class":30,"style":31},[28,1860,1724],{"style":1730},[28,1862,1863],{"style":1713},"\"filesUnchanged\"",[28,1865,859],{"style":1730},[28,1867,1829],{"style":1713},[28,1869,1737],{"style":1730},[28,1871,1872,1874,1877,1879,1881],{"class":30,"style":31},[28,1873,1724],{"style":1730},[28,1875,1876],{"style":1713},"\"filesFromLockfile\"",[28,1878,859],{"style":1730},[28,1880,1829],{"style":1713},[28,1882,1737],{"style":1730},[28,1884,1885,1887,1890,1892,1894],{"class":30,"style":31},[28,1886,1724],{"style":1730},[28,1888,1889],{"style":1713},"\"dryRun\"",[28,1891,859],{"style":1730},[28,1893,718],{"style":1713},[28,1895,1737],{"style":1730},[28,1897,1898,1900,1903,1905,1908],{"class":30,"style":31},[28,1899,1724],{"style":1730},[28,1901,1902],{"style":1713},"\"durationMs\"",[28,1904,859],{"style":1730},[28,1906,1907],{"style":1713},"312",[28,1909,1737],{"style":1730},[28,1911,1912,1914,1917,1919,1922],{"class":30,"style":31},[28,1913,1724],{"style":1730},[28,1915,1916],{"style":1713},"\"output\"",[28,1918,859],{"style":1730},[28,1920,1921],{"style":1733},"\"\u002Fproject\u002Fsrc\u002Fgen\"",[28,1923,1737],{"style":1730},[28,1925,1926,1928,1931,1933,1936,1939,1941,1944,1946,1948,1950,1953,1956],{"class":30,"style":31},[28,1927,1724],{"style":1730},[28,1929,1930],{"style":1713},"\"timings\"",[28,1932,859],{"style":1730},[28,1934,1935],{"style":1713},"[{ ",[28,1937,1938],{"style":1713},"\"plugin\"",[28,1940,859],{"style":1730},[28,1942,1943],{"style":1733},"\"plugin-ts\"",[28,1945,189],{"style":1730},[28,1947,1902],{"style":1713},[28,1949,859],{"style":1730},[28,1951,1952],{"style":1713},"84 ",[28,1954,1955],{"style":1713},"}]",[28,1957,1737],{"style":1730},[28,1959,1960,1962,1965,1967],{"class":30,"style":31},[28,1961,1724],{"style":1730},[28,1963,1964],{"style":1713},"\"diagnostics\"",[28,1966,859],{"style":1730},[28,1968,1714],{"style":1713},[28,1970,1971],{"class":30,"style":31},[28,1972,1973],{"style":1713}," {",[28,1975,1976,1979,1982,1984,1987],{"class":30,"style":31},[28,1977,1978],{"style":1713}," ",[28,1980,1981],{"style":1713},"\"code\"",[28,1983,859],{"style":1730},[28,1985,1986],{"style":1733},"\"KUBB_REF_NOT_FOUND\"",[28,1988,1737],{"style":1730},[28,1990,1991,1993,1996,1998,2001],{"class":30,"style":31},[28,1992,1978],{"style":1730},[28,1994,1995],{"style":1713},"\"severity\"",[28,1997,859],{"style":1730},[28,1999,2000],{"style":1733},"\"error\"",[28,2002,1737],{"style":1730},[28,2004,2005,2007,2010,2012,2015],{"class":30,"style":31},[28,2006,1978],{"style":1730},[28,2008,2009],{"style":1713},"\"message\"",[28,2011,859],{"style":1730},[28,2013,2014],{"style":1733},"\"Could not find a definition for #\u002Fcomponents\u002Fschemas\u002FPet.\"",[28,2016,1737],{"style":1730},[28,2018,2019,2021,2024,2026,2029],{"class":30,"style":31},[28,2020,1978],{"style":1730},[28,2022,2023],{"style":1713},"\"title\"",[28,2025,859],{"style":1730},[28,2027,2028],{"style":1733},"\"Reference not found\"",[28,2030,1737],{"style":1730},[28,2032,2033,2035,2038,2040,2043],{"class":30,"style":31},[28,2034,1978],{"style":1730},[28,2036,2037],{"style":1713},"\"cause\"",[28,2039,859],{"style":1730},[28,2041,2042],{"style":1733},"\"A `$ref` could not be resolved in the source document.\"",[28,2044,1737],{"style":1730},[28,2046,2047,2049,2052,2054,2056,2059,2061,2064,2066,2069,2071,2074,2076],{"class":30,"style":31},[28,2048,1978],{"style":1730},[28,2050,2051],{"style":1713},"\"location\"",[28,2053,859],{"style":1730},[28,2055,1763],{"style":1713},[28,2057,2058],{"style":1713},"\"kind\"",[28,2060,859],{"style":1730},[28,2062,2063],{"style":1733},"\"schema\"",[28,2065,189],{"style":1730},[28,2067,2068],{"style":1713},"\"pointer\"",[28,2070,859],{"style":1730},[28,2072,2073],{"style":1733},"\"#\u002Fcomponents\u002Fschemas\u002FPet\" ",[28,2075,1798],{"style":1713},[28,2077,1737],{"style":1730},[28,2079,2080,2082,2085,2087,2090],{"class":30,"style":31},[28,2081,1978],{"style":1730},[28,2083,2084],{"style":1713},"\"help\"",[28,2086,859],{"style":1730},[28,2088,2089],{"style":1733},"\"Add the schema under components.schemas, or fix the $ref. Run `kubb validate` to check the spec.\"",[28,2091,1737],{"style":1730},[28,2093,2094,2096,2098,2100,2102],{"class":30,"style":31},[28,2095,1978],{"style":1730},[28,2097,1938],{"style":1713},[28,2099,859],{"style":1730},[28,2101,1782],{"style":1733},[28,2103,1737],{"style":1730},[28,2105,2106,2108,2111,2113],{"class":30,"style":31},[28,2107,1978],{"style":1730},[28,2109,2110],{"style":1713},"\"docsUrl\"",[28,2112,859],{"style":1730},[28,2114,2115],{"style":1733},"\"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-ref-not-found\"",[28,2117,2118,2121],{"class":30,"style":31},[28,2119,2120],{"style":1733}," ",[28,2122,1798],{"style":1713},[28,2124,2125],{"class":30,"style":31},[28,2126,2127],{"style":1713}," ]",[28,2129,2130],{"class":30,"style":31},[28,2131,2132],{"style":1713}," }",[28,2134,2135],{"class":30,"style":31},[28,2136,1785],{"style":1713},[114,2138,2139,2149],{},[117,2140,2141],{},[120,2142,2143,2146],{},[123,2144,2145],{},"Field",[123,2147,2148],{},"Holds",[130,2150,2151,2165,2175,2184,2194,2214,2248,2261,2271,2284,2300],{},[120,2152,2153,2158],{},[135,2154,2155],{},[24,2156,2157],{},"name",[135,2159,2160,2161,594,2163],{},"The config ",[24,2162,2157],{},[24,2164,1734],{},[120,2166,2167,2172],{},[135,2168,2169],{},[24,2170,2171],{},"counts",[135,2173,2174],{},"Diagnostics by severity, without timings",[120,2176,2177,2181],{},[135,2178,2179],{},[24,2180,1651],{},[135,2182,2183],{},"Per-plugin durations, slowest first",[120,2185,2186,2191],{},[135,2187,2188],{},[24,2189,2190],{},"fileChanges",[135,2192,2193],{},"File and line changes, when collected",[120,2195,2196,2201],{},[135,2197,2198],{},[24,2199,2200],{},"check.changed",[135,2202,2203,2204,859,2210,2213],{},"With ",[165,2205,2207],{"href":2206},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fgenerate#check-mode",[24,2208,2209],{},"--check",[24,2211,2212],{},"true"," when the output on disk is out of date",[120,2215,2216,2221],{},[135,2217,2218],{},[24,2219,2220],{},"check.files",[135,2222,2203,2223,2225,2226,891,2229,2232,2233,199,2235,2238,2239,189,2242,594,2245,224],{},[24,2224,2209],{},": each out-of-date file as ",[24,2227,2228],{},"{ path, status, linesAdded, linesRemoved }",[24,2230,2231],{},"path"," is relative to ",[24,2234,512],{},[24,2236,2237],{},"status"," is ",[24,2240,2241],{},"added",[24,2243,2244],{},"modified",[24,2246,2247],{},"deleted",[120,2249,2250,2258],{},[135,2251,2252,189,2255],{},[24,2253,2254],{},"diagnostics[].title",[24,2256,2257],{},".cause",[135,2259,2260],{},"The code's catalog entry",[120,2262,2263,2268],{},[135,2264,2265],{},[24,2266,2267],{},"diagnostics[].help",[135,2269,2270],{},"Its own fix, or the catalog fix",[120,2272,2273,2281],{},[135,2274,2275,189,2278],{},[24,2276,2277],{},"diagnostics[].plugin",[24,2279,2280],{},".issues",[135,2282,2283],{},"The reporting plugin, and a crashed extension's issue tracker",[120,2285,2286,2294],{},[135,2287,2288,189,2291],{},[24,2289,2290],{},"diagnostics[].causes",[24,2292,2293],{},".stack",[135,2295,2296,2297,2299],{},"Wrapped error messages, and a ",[165,2298,246],{"href":245}," stack",[120,2301,2302,2307],{},[135,2303,2304],{},[24,2305,2306],{},"diagnostics[].docsUrl",[135,2308,2309,2310,2312],{},"This page's entry. ",[24,2311,202],{}," has none.",[10,2314,2315,2316,2318,2319,2325],{},"Any error still exits with code 1, or with code 2 under ",[24,2317,2209],{},". See ",[165,2320,2322],{"href":2321},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fgenerate#reporters",[24,2323,2324],{},"--reporter"," for other reporters.",[180,2327,2329],{"id":2328},"less-common-cases","Less common cases",[230,2331,1686],{"id":2332},"update-check",[10,2334,2335,2336,2341],{},"When a run prints ",[165,2337,2339],{"href":2338},"#kubb-update-available",[24,2340,1679],{}," without a network request, it reuses an earlier answer.",[665,2343,2344,2357],{},[668,2345,2346,2348,2349,2352,2353,2356],{},[24,2347,143],{}," asks npm at most once every 24 hours and keeps the answer in ",[24,2350,2351],{},"KUBB_HOME"," (default ",[24,2354,2355],{},"~\u002F.kubb","), so the notice also shows on runs that make no request.",[668,2358,2359,2360,352,2363,224],{},"CI skips the check, detected from variables such as ",[24,2361,2362],{},"CI",[24,2364,2365],{},"GITHUB_ACTIONS",[230,2367,177],{"id":2368},"diagnostic-details",[10,2370,2371],{},"Each row adds what a code's entry leaves out.",[114,2373,2374,2384],{},[117,2375,2376],{},[120,2377,2378,2381],{},[123,2379,2380],{},"Code",[123,2382,2383],{},"Detail",[130,2385,2386,2401,2425,2437,2453,2465,2479,2494,2506,2523,2535,2547,2562,2577,2591,2619,2631,2646,2658,2679,2694,2713,2740,2759],{},[120,2387,2388,2395],{},[135,2389,2390],{},[165,2391,2393],{"href":2392},"#kubb-adapter-failed",[24,2394,188],{},[135,2396,2397,2398,2400],{},"Errors the adapter reports on purpose, such as ",[24,2399,1109],{},", keep their own code.",[120,2402,2403,2410],{},[135,2404,2405],{},[165,2406,2408],{"href":2407},"#kubb-adapter-required",[24,2409,250],{},[135,2411,2412,2415,2416,2419,2420,923,2423,224],{},[24,2413,2414],{},"defineConfig"," adds the OpenAPI adapter when ",[24,2417,2418],{},"adapter"," is left out, so this happens only with a custom adapter or with ",[24,2421,2422],{},"createKubb",[24,2424,858],{},[120,2426,2427,2434],{},[135,2428,2429],{},[165,2430,2432],{"href":2431},"#kubb-barrel-duplicate-export",[24,2433,272],{},[135,2435,2436],{},"The barrel keeps the first export and drops the rest, so the code still parses, but the run fails. A type and a value may share a name.",[120,2438,2439,2446],{},[135,2440,2441],{},[165,2442,2444],{"href":2443},"#kubb-duplicate-discriminator",[24,2445,1416],{},[135,2447,2448,2449,2452],{},"Zod's ",[24,2450,2451],{},"z.discriminatedUnion"," throws on the first parse of such a union.",[120,2454,2455,2462],{},[135,2456,2457],{},[165,2458,2460],{"href":2459},"#kubb-format-failed",[24,2461,386],{},[135,2463,2464],{},"Check the formatter's install and config.",[120,2466,2467,2474],{},[135,2468,2469],{},[165,2470,2472],{"href":2471},"#kubb-git-input-failed",[24,2473,405],{},[135,2475,2476,2478],{},[24,2477,419],{}," is missing, the repository or ref does not exist, or the credentials were refused. For a private repository, set up a credential helper or SSH key.",[120,2480,2481,2488],{},[135,2482,2483],{},[165,2484,2486],{"href":2485},"#kubb-incompatible-extension",[24,2487,460],{},[135,2489,2490,2491,224],{},"Kubb checks at run time and in ",[24,2492,2493],{},"kubb add",[120,2495,2496,2503],{},[135,2497,2498],{},[165,2499,2501],{"href":2500},"#kubb-inline-failed",[24,2502,479],{},[135,2504,2505],{},"The imported name has no inline definition, refers to itself, or has no parser that supports inlining. One diagnostic lists every case.",[120,2507,2508,2515],{},[135,2509,2510],{},[165,2511,2513],{"href":2512},"#kubb-input-not-found",[24,2514,491],{},[135,2516,2517,2518,352,2520,2522],{},"A URL reports ",[24,2519,516],{},[24,2521,552],{}," instead.",[120,2524,2525,2532],{},[135,2526,2527],{},[165,2528,2530],{"href":2529},"#kubb-input-request-failed",[24,2531,516],{},[135,2533,2534],{},"A 404 means a wrong path, and a 5xx a failing server. The extension commands also report it for an invalid registry index.",[120,2536,2537,2544],{},[135,2538,2539],{},[165,2540,2542],{"href":2541},"#kubb-input-unreachable",[24,2543,552],{},[135,2545,2546],{},"The cause is a refused connection, an unknown host, an expired certificate, or a timeout. The message names which one. For a local server, check the port.",[120,2548,2549,2556],{},[135,2550,2551],{},[165,2552,2554],{"href":2553},"#kubb-internal-error",[24,2555,198],{},[135,2557,2558,2559,2561],{},"The bug is in Kubb, not in your config or spec. ",[24,2560,209],{}," also shows the stack.",[120,2563,2564,2571],{},[135,2565,2566],{},[165,2567,2569],{"href":2568},"#kubb-invalid-document",[24,2570,636],{},[135,2572,2573,2574,2576],{},"The check runs even with validation off. A passed ",[24,2575,415],{}," must be the spec itself, not an HTML page or a wrapper object.",[120,2578,2579,2586],{},[135,2580,2581],{},[165,2582,2584],{"href":2583},"#kubb-invalid-plugin-options",[24,2585,723],{},[135,2587,2588,2589,224],{},"See ",[165,2590,742],{"href":741},[120,2592,2593,2600],{},[135,2594,2595],{},[165,2596,2598],{"href":2597},"#kubb-invalid-spec",[24,2599,1487],{},[135,2601,2602,2606,2607,2610,2611,2238,2616,2618],{},[165,2603,2604],{"href":1125},[24,2605,1128],{}," lists every problem as an error and exits with code 1. ",[24,2608,2609],{},"@kubb\u002Fadapter-oas"," checks while ",[165,2612,2613],{"href":1502},[24,2614,2615],{},"validate",[24,2617,2212],{},", the default.",[120,2620,2621,2628],{},[135,2622,2623],{},[165,2624,2626],{"href":2625},"#kubb-no-context",[24,2627,934],{},[135,2629,2630],{},"The composable has no plugin to apply to. The message names the composable.",[120,2632,2633,2640],{},[135,2634,2635],{},[165,2636,2638],{"href":2637},"#kubb-path-traversal",[24,2639,1012],{},[135,2641,2642,2643,2645],{},"The refusal stops a crafted spec or a wrong ",[24,2644,1028],{}," from placing files elsewhere on disk.",[120,2647,2648,2655],{},[135,2649,2650],{},[165,2651,2653],{"href":2652},"#kubb-performance",[24,2654,1642],{},[135,2656,2657],{},"Kubb never prints it as a problem. The time leaves out config loading, format, lint, and post-generate.",[120,2659,2660,2667],{},[135,2661,2662],{},[165,2663,2665],{"href":2664},"#kubb-plugin-failed",[24,2666,195],{},[135,2668,2669,2670,224],{},"The diagnostic names the plugin and keeps the thrown error as its cause. Plugin authors can raise a stable code with ",[165,2671,2673,352,2676],{"href":2672},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fengine#diagnostics",[24,2674,2675],{},"Diagnostics.Error",[24,2677,2678],{},"Diagnostics.report",[120,2680,2681,2688],{},[135,2682,2683],{},[165,2684,2686],{"href":2685},"#kubb-plugin-not-found",[24,2687,1061],{},[135,2689,2690,2693],{},[24,2691,2692],{},"kubb init --plugins"," also reports it for an id the registry does not list.",[120,2695,2696,2708],{},[135,2697,2698,189,2703],{},[165,2699,2701],{"href":2700},"#kubb-plugin-warning",[24,2702,1570],{},[165,2704,2706],{"href":2705},"#kubb-plugin-info",[24,2707,1664],{},[135,2709,2710,2711,224],{},"Plugin authors can add a stable code and a location with ",[24,2712,2678],{},[120,2714,2715,2722],{},[135,2716,2717],{},[165,2718,2720],{"href":2719},"#kubb-ref-not-found",[24,2721,1109],{},[135,2723,2724,2725,2728,2729,2731,2732,2739],{},"Inside an ",[24,2726,2727],{},"x-"," vendor extension it is only a warning. Kubb refuses some local ",[24,2730,524],{}," files, such as any from a URL input. See ",[165,2733,2735,2736,2738],{"href":2734},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#external-refs","External ",[24,2737,524],{}," files"," for the rules on Kubb Studio agents.",[120,2741,2742,2749],{},[135,2743,2744],{},[165,2745,2747],{"href":2746},"#kubb-unknown",[24,2748,202],{},[135,2750,2751,2752,2755,2756,224],{},"The terminal shows no docs link for it. ",[24,2753,2754],{},"--reporter file"," writes a log with the stack in ",[24,2757,2758],{},".kubb\u002F",[120,2760,2761,2768],{},[135,2762,2763],{},[165,2764,2766],{"href":2765},"#kubb-unsupported-format",[24,2767,1603],{},[135,2769,2770],{},"Kubb reports each format once, with a count, at the first schema that uses it.",[2772,2773,742],"h4",{"id":2774},"invalid-plugin-options",[10,2776,2777,2778,2782,2783,2785],{},"When a run stops with ",[165,2779,2780],{"href":2583},[24,2781,723],{},", the ",[24,2784,833],{}," array or a plugin's options cannot work as given. The message names the case:",[665,2787,2788,2800,2814,2817,2829,2834,2842],{},[668,2789,2790,2792,2793,2796,2797,2799],{},[24,2791,729],{}," with file output: ",[24,2794,2795],{},"output.mode: 'file'",", or an ",[24,2798,294],{}," with an extension.",[668,2801,2802,2804,2805,189,2808,594,2811,224],{},[24,2803,732],{}," with file output on ",[24,2806,2807],{},"@kubb\u002Fplugin-fetch",[24,2809,2810],{},"@kubb\u002Fplugin-axios",[24,2812,2813],{},"@kubb\u002Fplugin-client",[668,2815,2816],{},"An option value the plugin does not accept.",[668,2818,408,2819,2821,2822,2825,2826,224],{},[24,2820,833],{}," entry that is not a plugin, such as ",[24,2823,2824],{},"pluginTs"," instead of ",[24,2827,2828],{},"pluginTs()",[668,2830,2831,2832,224],{},"The same plugin twice, or a cycle in plugin ",[24,2833,451],{},[668,2835,2836,2837,352,2840,224],{},"An extension without ",[24,2838,2839],{},"meta.name",[24,2841,2157],{},[668,2843,408,2844,2847,2848,2851,2852,2855],{},[24,2845,2846],{},"@kubb\u002Fplugin-faker"," ",[24,2849,2850],{},"dateParser"," that cannot format the adapter's ",[24,2853,2854],{},"dateType: 'date'"," values.",[10,2857,2858,2859,2861,2862,2865],{},"Change what the message names. A single file has nothing to group or split, so remove ",[24,2860,729],{},", use ",[24,2863,2864],{},"sdk.mode: 'flat'",", or write to a directory.",{"title":2867,"searchDepth":2868,"depth":2868,"links":2869},"",5,[2870,2872,2921,2932,2938,2939],{"id":182,"depth":2871,"text":183},2,{"id":227,"depth":2871,"text":228,"children":2873},[2874,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2920],{"id":232,"depth":2875,"text":188},3,{"id":249,"depth":2875,"text":250},{"id":271,"depth":2875,"text":272},{"id":288,"depth":2875,"text":289},{"id":316,"depth":2875,"text":317},{"id":328,"depth":2875,"text":329},{"id":344,"depth":2875,"text":345},{"id":385,"depth":2875,"text":386},{"id":404,"depth":2875,"text":405},{"id":436,"depth":2875,"text":437},{"id":459,"depth":2875,"text":460},{"id":478,"depth":2875,"text":479},{"id":490,"depth":2875,"text":491},{"id":515,"depth":2875,"text":516},{"id":533,"depth":2875,"text":534},{"id":551,"depth":2875,"text":552},{"id":568,"depth":2875,"text":569},{"id":600,"depth":2875,"text":198},{"id":619,"depth":2875,"text":620},{"id":635,"depth":2875,"text":636},{"id":659,"depth":2875,"text":660},{"id":722,"depth":2875,"text":723},{"id":745,"depth":2875,"text":746},{"id":772,"depth":2875,"text":773},{"id":799,"depth":2875,"text":800},{"id":814,"depth":2875,"text":815},{"id":836,"depth":2875,"text":837},{"id":851,"depth":2875,"text":852},{"id":933,"depth":2875,"text":934},{"id":998,"depth":2875,"text":192},{"id":1011,"depth":2875,"text":1012},{"id":1040,"depth":2875,"text":195},{"id":1060,"depth":2875,"text":1061},{"id":1089,"depth":2875,"text":1090},{"id":1108,"depth":2875,"text":1109},{"id":1131,"depth":2875,"text":1132},{"id":1167,"depth":2875,"text":1168},{"id":1182,"depth":2875,"text":1183},{"id":1216,"depth":2875,"text":1217},{"id":1244,"depth":2875,"text":1245},{"id":1260,"depth":2875,"text":1261},{"id":1276,"depth":2875,"text":1277},{"id":1296,"depth":2875,"text":1297},{"id":1312,"depth":2875,"text":1313},{"id":1332,"depth":2875,"text":1333},{"id":1370,"depth":2875,"text":202},{"id":1390,"depth":2871,"text":1391,"children":2922},[2923,2924,2925,2926,2927,2928,2929,2930,2931],{"id":1394,"depth":2875,"text":1395},{"id":1415,"depth":2875,"text":1416},{"id":1443,"depth":2875,"text":1444},{"id":1486,"depth":2875,"text":1487},{"id":1509,"depth":2875,"text":1510},{"id":1540,"depth":2875,"text":1541},{"id":1569,"depth":2875,"text":1570},{"id":1584,"depth":2875,"text":1585},{"id":1602,"depth":2875,"text":1603},{"id":1622,"depth":2871,"text":157,"children":2933},[2934,2935,2936,2937],{"id":1625,"depth":2875,"text":1626},{"id":1641,"depth":2875,"text":1642},{"id":1663,"depth":2875,"text":1664},{"id":1678,"depth":2875,"text":1679},{"id":1694,"depth":2871,"text":1655},{"id":2328,"depth":2871,"text":2329,"children":2940},[2941,2942],{"id":2332,"depth":2875,"text":1686},{"id":2368,"depth":2875,"text":177,"children":2943},[2944],{"id":2774,"depth":2945,"text":742},4,"Reference for every Kubb diagnostic code, with its severity, cause, and fix, plus the terminal, agent, and JSON formats Kubb reports them in.","md",{"layout":2949,"title":5,"description":2946,"outline":2950,"order":2951,"navigation":2952},"doc",[2871,2875],7,{"title":2953,"icon":2954},"Diagnostics","i-iconoir-warning-triangle",{"layout":2949,"outline":2956},[2871,2875],{"title":2953,"icon":2954},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics",{"title":5,"description":2946},{"loc":2958},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics.md","docs\u002F5.x\u002Freference\u002Fdiagnostics","84C0fdkfzFluVZpZtP3lXd2Bcw9xDuE9XL4A7UXkOhU",1795989034897,"2e8b4c62-5b8c-4587-97c0-530d08a9bd53"]