[{"data":1,"prerenderedAt":2917,"buildId":2918},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration":3},{"id":4,"title":5,"body":6,"description":2899,"extension":2900,"frontmatter":2901,"heading":2906,"meta":2908,"navigation":2910,"order":2904,"path":2911,"seo":2912,"sitemap":2913,"source":2914,"stem":2915,"__hash__":2916},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration.md","kubb.config.ts - Configuration reference",{"type":7,"value":8,"toc":2854},"minimark",[9,21,170,175,195,199,204,209,212,306,309,447,451,454,609,619,623,639,814,835,839,2459,2463,2467,2470,2479,2483,2528,2532,2543,2558,2562,2571,2601,2605,2637,2641,2651,2696,2704,2709,2722,2725,2774,2784,2800,2809,2812,2820,2847],[10,11,12,16,17,20],"p",{},[13,14,15],"code",{},"kubb.config.ts"," tells Kubb which spec to read, where to write, and which plugins to run. Its default export is a ",[13,18,19],{},"defineConfig"," call:",[22,23,27],"pre",{"language":24,"filename":15,"code":25,"class":26},"typescript","import { defineConfig } from 'kubb\u002Fconfig'\nimport { pluginTs } from '@kubb\u002Fplugin-ts'\n\nexport default defineConfig({\n name: 'petStore',\n input: '.\u002FpetStore.yaml',\n output: { path: '.\u002Fsrc\u002Fgen' },\n plugins: [pluginTs()],\n})","highlights",[13,28,30,57,58,57,74,57,76,57,90,57,107,57,121,57,145,57,165],{"class":29},"language-typescript",[31,32,35,39,43,47,50,53],"span",{"class":33,"style":34},"line","display: inline",[31,36,38],{"style":37},"color:#d73a49;--hls-dark:#f97583","import ",[31,40,42],{"style":41},"color:#005cc5;--hls-dark:#79b8ff","{ ",[31,44,46],{"style":45},"color:#24292e;--hls-dark:#e1e4e8","defineConfig ",[31,48,49],{"style":41},"} ",[31,51,52],{"style":37},"from ",[31,54,56],{"style":55},"color:#032f62;--hls-dark:#9ecbff","'kubb\u002Fconfig'","\n",[31,59,60,62,64,67,69,71],{"class":33,"style":34},[31,61,38],{"style":37},[31,63,42],{"style":41},[31,65,66],{"style":45},"pluginTs ",[31,68,49],{"style":41},[31,70,52],{"style":37},[31,72,73],{"style":55},"'@kubb\u002Fplugin-ts'",[31,75],{"class":33,"style":34},[31,77,78,81,84,87],{"class":33,"style":34},[31,79,80],{"style":37},"export ",[31,82,83],{"style":37},"default ",[31,85,19],{"style":86},"color:#6f42c1;--hls-dark:#b392f0",[31,88,89],{"style":41},"({",[31,91,92,95,98,101,104],{"class":33,"style":34},[31,93,94],{"style":41}," ",[31,96,97],{"style":41},"name",[31,99,100],{"style":37},": ",[31,102,103],{"style":55},"'petStore'",[31,105,106],{"style":37},",",[31,108,109,111,114,116,119],{"class":33,"style":34},[31,110,94],{"style":37},[31,112,113],{"style":41},"input",[31,115,100],{"style":37},[31,117,118],{"style":55},"'.\u002FpetStore.yaml'",[31,120,106],{"style":37},[31,122,123,125,128,130,132,135,137,140,143],{"class":33,"style":34},[31,124,94],{"style":37},[31,126,127],{"style":41},"output",[31,129,100],{"style":37},[31,131,42],{"style":41},[31,133,134],{"style":41},"path",[31,136,100],{"style":37},[31,138,139],{"style":55},"'.\u002Fsrc\u002Fgen' ",[31,141,142],{"style":41},"}",[31,144,106],{"style":37},[31,146,147,149,152,154,157,160,163],{"class":33,"style":34},[31,148,94],{"style":37},[31,150,151],{"style":41},"plugins",[31,153,100],{"style":37},[31,155,156],{"style":41},"[",[31,158,159],{"style":86},"pluginTs",[31,161,162],{"style":41},"()]",[31,164,106],{"style":37},[31,166,167],{"class":33,"style":34},[31,168,169],{"style":41},"})",[171,172,174],"h2",{"id":173},"how-kubb-loads-a-config","How Kubb loads a config",[10,176,177,178,181,182,184,185,188,189,194],{},"Kubb loads the ",[13,179,180],{},"--config"," file. Without one, it loads the first ",[13,183,15],{}," or variant, such as ",[13,186,187],{},".kubbrc.ts",", in the working folder or a parent. See ",[190,191,193],"a",{"href":192},"#config-loading","Config loading",".",[171,196,198],{"id":197},"config-formats","Config formats",[10,200,201,203],{},[13,202,19],{}," takes an object, a Promise of one, an array, or a function that returns any of these.",[205,206,208],"h3",{"id":207},"config-function","Config function",[10,210,211],{},"Pass a function when the config depends on how Kubb runs, such as watch mode:",[22,213,215],{"language":24,"filename":15,"code":214,"class":26},"import { defineConfig } from 'kubb\u002Fconfig'\n\nexport default defineConfig(({ watch }) => ({\n input: '.\u002FpetStore.yaml',\n output: { path: '.\u002Fsrc\u002Fgen', clean: !watch },\n}))",[13,216,217,57,231,57,233,57,255,57,267,57,301],{"class":29},[31,218,219,221,223,225,227,229],{"class":33,"style":34},[31,220,38],{"style":37},[31,222,42],{"style":41},[31,224,46],{"style":45},[31,226,49],{"style":41},[31,228,52],{"style":37},[31,230,56],{"style":55},[31,232],{"class":33,"style":34},[31,234,235,237,239,241,244,247,250,253],{"class":33,"style":34},[31,236,80],{"style":37},[31,238,83],{"style":37},[31,240,19],{"style":86},[31,242,243],{"style":41},"(({ ",[31,245,246],{"style":45},"watch ",[31,248,249],{"style":41},"}) ",[31,251,252],{"style":37},"=> ",[31,254,89],{"style":41},[31,256,257,259,261,263,265],{"class":33,"style":34},[31,258,94],{"style":41},[31,260,113],{"style":41},[31,262,100],{"style":37},[31,264,118],{"style":55},[31,266,106],{"style":37},[31,268,269,271,273,275,277,279,281,284,287,290,292,295,297,299],{"class":33,"style":34},[31,270,94],{"style":37},[31,272,127],{"style":41},[31,274,100],{"style":37},[31,276,42],{"style":41},[31,278,134],{"style":41},[31,280,100],{"style":37},[31,282,283],{"style":55},"'.\u002Fsrc\u002Fgen'",[31,285,286],{"style":37},", ",[31,288,289],{"style":41},"clean",[31,291,100],{"style":37},[31,293,294],{"style":37},"!",[31,296,246],{"style":45},[31,298,142],{"style":41},[31,300,106],{"style":37},[31,302,303],{"class":33,"style":34},[31,304,305],{"style":41},"}))",[10,307,308],{},"The function gets the CLI context:",[310,311,312,328],"table",{},[313,314,315],"thead",{},[316,317,318,322,325],"tr",{},[319,320,321],"th",{},"Field",[319,323,324],{},"Type",[319,326,327],{},"Value",[329,330,331,359,381,402,426],"tbody",{},[316,332,333,338,343],{},[334,335,336],"td",{},[13,337,113],{},[334,339,340],{},[13,341,342],{},"string | undefined",[334,344,345,346,352,353],{},"The ",[190,347,349],{"href":348},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fgenerate#arguments",[13,350,351],{},"kubb generate \u003Cinput>"," argument, which overrides ",[190,354,356],{"href":355},"#input",[13,357,358],{},"config.input",[316,360,361,366,371],{},[334,362,363],{},[13,364,365],{},"watch",[334,367,368],{},[13,369,370],{},"boolean | undefined",[334,372,373,376,377],{},[13,374,375],{},"true"," in ",[190,378,380],{"href":379},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fgenerate#watch-mode","watch mode",[316,382,383,388,393],{},[334,384,385],{},[13,386,387],{},"logLevel",[334,389,390],{},[13,391,392],{},"'silent' | 'info' | 'verbose' | undefined",[334,394,395,396],{},"The current ",[190,397,399],{"href":398},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fgenerate#options",[13,400,401],{},"--log-level",[316,403,404,409,414],{},[334,405,406],{},[13,407,408],{},"reporters",[334,410,411],{},[13,412,413],{},"Array\u003CReporterName> | undefined",[334,415,345,416,422,423],{},[190,417,419],{"href":418},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fgenerate#reporters",[13,420,421],{},"--reporter"," names, such as ",[13,424,425],{},"['json']",[316,427,428,433,437],{},[334,429,430],{},[13,431,432],{},"config",[334,434,435],{},[13,436,342],{},[334,438,345,439,443,444],{},[190,440,441],{"href":398},[13,442,180],{}," value, or ",[13,445,446],{},"undefined",[205,448,450],{"id":449},"multiple-configurations-array","Multiple configurations (array)",[10,452,453],{},"Pass an array to generate from several specs in one run. A config function can return an array too.",[22,455,457],{"language":24,"filename":15,"code":456,"class":26},"import { defineConfig } from 'kubb\u002Fconfig'\nimport { pluginTs } from '@kubb\u002Fplugin-ts'\n\nexport default defineConfig([\n { name: 'petStore', input: '.\u002FpetStore.yaml', output: { path: '.\u002Fsrc\u002Fgen\u002FpetStore' }, plugins: [pluginTs()] },\n { name: 'stripe', input: '.\u002Fstripe.yaml', output: { path: '.\u002Fsrc\u002Fgen\u002Fstripe' }, plugins: [pluginTs()] },\n])",[13,458,459,57,473,57,487,57,489,57,500,57,551,57,604],{"class":29},[31,460,461,463,465,467,469,471],{"class":33,"style":34},[31,462,38],{"style":37},[31,464,42],{"style":41},[31,466,46],{"style":45},[31,468,49],{"style":41},[31,470,52],{"style":37},[31,472,56],{"style":55},[31,474,475,477,479,481,483,485],{"class":33,"style":34},[31,476,38],{"style":37},[31,478,42],{"style":41},[31,480,66],{"style":45},[31,482,49],{"style":41},[31,484,52],{"style":37},[31,486,73],{"style":55},[31,488],{"class":33,"style":34},[31,490,491,493,495,497],{"class":33,"style":34},[31,492,80],{"style":37},[31,494,83],{"style":37},[31,496,19],{"style":86},[31,498,499],{"style":41},"([",[31,501,502,505,507,509,511,513,515,517,519,521,523,525,527,529,531,534,536,538,540,542,544,546,549],{"class":33,"style":34},[31,503,504],{"style":41}," { ",[31,506,97],{"style":41},[31,508,100],{"style":37},[31,510,103],{"style":55},[31,512,286],{"style":37},[31,514,113],{"style":41},[31,516,100],{"style":37},[31,518,118],{"style":55},[31,520,286],{"style":37},[31,522,127],{"style":41},[31,524,100],{"style":37},[31,526,42],{"style":41},[31,528,134],{"style":41},[31,530,100],{"style":37},[31,532,533],{"style":55},"'.\u002Fsrc\u002Fgen\u002FpetStore' ",[31,535,142],{"style":41},[31,537,286],{"style":37},[31,539,151],{"style":41},[31,541,100],{"style":37},[31,543,156],{"style":41},[31,545,159],{"style":86},[31,547,548],{"style":41},"()] }",[31,550,106],{"style":37},[31,552,553,555,557,559,561,564,566,568,570,573,575,577,579,581,583,585,588,590,592,594,596,598,600,602],{"class":33,"style":34},[31,554,94],{"style":37},[31,556,42],{"style":41},[31,558,97],{"style":41},[31,560,100],{"style":37},[31,562,563],{"style":55},"'stripe'",[31,565,286],{"style":37},[31,567,113],{"style":41},[31,569,100],{"style":37},[31,571,572],{"style":55},"'.\u002Fstripe.yaml'",[31,574,286],{"style":37},[31,576,127],{"style":41},[31,578,100],{"style":37},[31,580,42],{"style":41},[31,582,134],{"style":41},[31,584,100],{"style":37},[31,586,587],{"style":55},"'.\u002Fsrc\u002Fgen\u002Fstripe' ",[31,589,142],{"style":41},[31,591,286],{"style":37},[31,593,151],{"style":41},[31,595,100],{"style":37},[31,597,156],{"style":41},[31,599,159],{"style":86},[31,601,548],{"style":41},[31,603,106],{"style":37},[31,605,606],{"class":33,"style":34},[31,607,608],{"style":41},"])",[10,610,611,612,618],{},"When the specs define the same schemas, set ",[190,613,615],{"href":614},"#shared",[13,616,617],{},"shared"," to generate those once.",[171,620,622],{"id":621},"defaults","Defaults",[10,624,625,627,628,631,632,627,635,638],{},[13,626,19],{}," from ",[13,629,630],{},"kubb\u002Fconfig"," and ",[13,633,634],{},"createKubb",[13,636,637],{},"kubb"," fill in these defaults for every option you leave out.",[310,640,641,651],{},[313,642,643],{},[316,644,645,648],{},[319,646,647],{},"Option",[319,649,650],{},"Default",[329,652,653,662,672,684,695,706,721,733,745,762,774,786,803],{},[316,654,655,659],{},[334,656,657],{},[13,658,113],{},[334,660,661],{},"None. Required with an adapter.",[316,663,664,669],{},[334,665,666],{},[13,667,668],{},"output.path",[334,670,671],{},"None. Required.",[316,673,674,679],{},[334,675,676],{},[13,677,678],{},"output.clean",[334,680,681],{},[13,682,683],{},"false",[316,685,686,691],{},[334,687,688],{},[13,689,690],{},"output.format",[334,692,693],{},[13,694,683],{},[316,696,697,702],{},[334,698,699],{},[13,700,701],{},"output.lint",[334,703,704],{},[13,705,683],{},[316,707,708,713],{},[334,709,710],{},[13,711,712],{},"output.barrel",[334,714,715,717,718],{},[13,716,683],{},", so no root ",[13,719,720],{},"index.ts",[316,722,723,728],{},[334,724,725],{},[13,726,727],{},"output.defaultBanner",[334,729,730],{},[13,731,732],{},"'simple'",[316,734,735,739],{},[334,736,737],{},[13,738,151],{},[334,740,741,744],{},[13,742,743],{},"pluginBarrel()",", appended when missing",[316,746,747,752],{},[334,748,749],{},[13,750,751],{},"adapter",[334,753,754,757,758],{},[13,755,756],{},"adapterOas()",", the bundled ",[190,759,761],{"href":760},"\u002Fextensions\u002Fkubb-labs\u002Fadapter-oas","OpenAPI adapter",[316,763,764,769],{},[334,765,766],{},[13,767,768],{},"parsers",[334,770,771],{},[13,772,773],{},"[parserTs(), parserTsx(), parserMd()]",[316,775,776,781],{},[334,777,778],{},[13,779,780],{},"storage",[334,782,783],{},[13,784,785],{},"fsStorage()",[316,787,788,793],{},[334,789,790],{},[13,791,792],{},"root",[334,794,795,796,799,800],{},"The config file's folder, or the folder above ",[13,797,798],{},".config\u002F"," or ",[13,801,802],{},"configs\u002F",[316,804,805,809],{},[334,806,807],{},[13,808,408],{},[334,810,811],{},[13,812,813],{},"[cli, json, file, html]",[10,815,816,817,819,820,822,823,826,827,627,829,832,833,194],{},"When you call ",[13,818,634],{}," yourself, ",[13,821,792],{}," defaults to ",[13,824,825],{},"process.cwd()",". ",[13,828,634],{},[13,830,831],{},"@kubb\u002Fcore"," applies fewer defaults. The build tool integrations run fewer reporters. See ",[190,834,193],{"href":192},[171,836,838],{"id":837},"top-level-options","Top-level options",[840,841,842,846,857,861,1375,1379,1398,1404,1410,1415,1450,1455,1469,1474,1487,1493,1650,1655,1687,1692,1782,1786,2122,2126,2148,2152,2180,2184,2315,2319,2337,2341,2362,2366,2390,2395],"field-group",{},[205,843,844],{"id":97},[13,845,97],{},[847,848,850,851,854,855,194],"field",{"type":849},"string","The run heading the CLI prints before the input, such as ",[13,852,853],{},"petStore .\u002FpetStore.yaml",". Unnamed configs show as ",[13,856,637],{},[205,858,859],{"id":113},[13,860,113],{},[847,862,864,870,942,956,1359],{"type":863},"string | Record\u003Cstring, unknown>",[10,865,866,867,869],{},"Where Kubb reads your spec. Required when an adapter is set, as ",[13,868,19],{}," does by default. Kubb detects the kind:",[310,871,872,881],{},[313,873,874],{},[316,875,876,878],{},[319,877,327],{},[319,879,880],{},"Read as",[329,882,883,891,911,921,929],{},[316,884,885,888],{},[334,886,887],{},"An object",[334,889,890],{},"A parsed spec",[316,892,893,908],{},[334,894,895,896,799,899,901,902,799,905],{},"A string starting with ",[13,897,898],{},"{",[13,900,156],{},", spanning lines, or opening with ",[13,903,904],{},"openapi:",[13,906,907],{},"swagger:",[334,909,910],{},"Inline JSON or YAML",[316,912,913,918],{},[334,914,895,915],{},[13,916,917],{},"git+",[334,919,920],{},"A file in a git repository",[316,922,923,926],{},[334,924,925],{},"A URL string",[334,927,928],{},"A remote spec",[316,930,931,934],{},[334,932,933],{},"Any other string",[334,935,936,937],{},"A file path, relative to ",[190,938,940],{"href":939},"#root",[13,941,792],{},[10,943,944,945,948,949,952,953,194],{},"A git input is ",[13,946,947],{},"git+\u003Crepo>#\u003Cref>:\u003Cpath>"," and needs ",[13,950,951],{},"git"," on the ",[13,954,955],{},"PATH",[957,958,959,1027,1096,1165,1263],"code-group",{},[22,960,963],{"language":24,"filename":961,"code":962,"class":26},"File path","import { defineConfig } from 'kubb\u002Fconfig'\n\nexport default defineConfig({\n input: '.\u002FpetStore.yaml',\n output: { path: '.\u002Fsrc\u002Fgen' },\n})",[13,964,965,57,979,57,981,57,991,57,1003,57,1023],{"class":29},[31,966,967,969,971,973,975,977],{"class":33,"style":34},[31,968,38],{"style":37},[31,970,42],{"style":41},[31,972,46],{"style":45},[31,974,49],{"style":41},[31,976,52],{"style":37},[31,978,56],{"style":55},[31,980],{"class":33,"style":34},[31,982,983,985,987,989],{"class":33,"style":34},[31,984,80],{"style":37},[31,986,83],{"style":37},[31,988,19],{"style":86},[31,990,89],{"style":41},[31,992,993,995,997,999,1001],{"class":33,"style":34},[31,994,94],{"style":41},[31,996,113],{"style":41},[31,998,100],{"style":37},[31,1000,118],{"style":55},[31,1002,106],{"style":37},[31,1004,1005,1007,1009,1011,1013,1015,1017,1019,1021],{"class":33,"style":34},[31,1006,94],{"style":37},[31,1008,127],{"style":41},[31,1010,100],{"style":37},[31,1012,42],{"style":41},[31,1014,134],{"style":41},[31,1016,100],{"style":37},[31,1018,139],{"style":55},[31,1020,142],{"style":41},[31,1022,106],{"style":37},[31,1024,1025],{"class":33,"style":34},[31,1026,169],{"style":41},[22,1028,1031],{"language":24,"filename":1029,"code":1030,"class":26},"URL","import { defineConfig } from 'kubb\u002Fconfig'\n\nexport default defineConfig({\n input: 'https:\u002F\u002Fpetstore3.swagger.io\u002Fapi\u002Fv3\u002Fopenapi.json',\n output: { path: '.\u002Fsrc\u002Fgen' },\n})",[13,1032,1033,57,1047,57,1049,57,1059,57,1072,57,1092],{"class":29},[31,1034,1035,1037,1039,1041,1043,1045],{"class":33,"style":34},[31,1036,38],{"style":37},[31,1038,42],{"style":41},[31,1040,46],{"style":45},[31,1042,49],{"style":41},[31,1044,52],{"style":37},[31,1046,56],{"style":55},[31,1048],{"class":33,"style":34},[31,1050,1051,1053,1055,1057],{"class":33,"style":34},[31,1052,80],{"style":37},[31,1054,83],{"style":37},[31,1056,19],{"style":86},[31,1058,89],{"style":41},[31,1060,1061,1063,1065,1067,1070],{"class":33,"style":34},[31,1062,94],{"style":41},[31,1064,113],{"style":41},[31,1066,100],{"style":37},[31,1068,1069],{"style":55},"'https:\u002F\u002Fpetstore3.swagger.io\u002Fapi\u002Fv3\u002Fopenapi.json'",[31,1071,106],{"style":37},[31,1073,1074,1076,1078,1080,1082,1084,1086,1088,1090],{"class":33,"style":34},[31,1075,94],{"style":37},[31,1077,127],{"style":41},[31,1079,100],{"style":37},[31,1081,42],{"style":41},[31,1083,134],{"style":41},[31,1085,100],{"style":37},[31,1087,139],{"style":55},[31,1089,142],{"style":41},[31,1091,106],{"style":37},[31,1093,1094],{"class":33,"style":34},[31,1095,169],{"style":41},[22,1097,1100],{"language":24,"filename":1098,"code":1099,"class":26},"Git","import { defineConfig } from 'kubb\u002Fconfig'\n\nexport default defineConfig({\n input: 'git+https:\u002F\u002Fgithub.com\u002Forg\u002Fapi.git#v2:specs\u002Fopenapi.yaml',\n output: { path: '.\u002Fsrc\u002Fgen' },\n})",[13,1101,1102,57,1116,57,1118,57,1128,57,1141,57,1161],{"class":29},[31,1103,1104,1106,1108,1110,1112,1114],{"class":33,"style":34},[31,1105,38],{"style":37},[31,1107,42],{"style":41},[31,1109,46],{"style":45},[31,1111,49],{"style":41},[31,1113,52],{"style":37},[31,1115,56],{"style":55},[31,1117],{"class":33,"style":34},[31,1119,1120,1122,1124,1126],{"class":33,"style":34},[31,1121,80],{"style":37},[31,1123,83],{"style":37},[31,1125,19],{"style":86},[31,1127,89],{"style":41},[31,1129,1130,1132,1134,1136,1139],{"class":33,"style":34},[31,1131,94],{"style":41},[31,1133,113],{"style":41},[31,1135,100],{"style":37},[31,1137,1138],{"style":55},"'git+https:\u002F\u002Fgithub.com\u002Forg\u002Fapi.git#v2:specs\u002Fopenapi.yaml'",[31,1140,106],{"style":37},[31,1142,1143,1145,1147,1149,1151,1153,1155,1157,1159],{"class":33,"style":34},[31,1144,94],{"style":37},[31,1146,127],{"style":41},[31,1148,100],{"style":37},[31,1150,42],{"style":41},[31,1152,134],{"style":41},[31,1154,100],{"style":37},[31,1156,139],{"style":55},[31,1158,142],{"style":41},[31,1160,106],{"style":37},[31,1162,1163],{"class":33,"style":34},[31,1164,169],{"style":41},[22,1166,1169],{"language":24,"filename":1167,"code":1168,"class":26},"Inline YAML","import { defineConfig } from 'kubb\u002Fconfig'\n\nexport default defineConfig({\n input: `\nopenapi: 3.1.0\ninfo:\n title: Pet Store\n version: 1.0.0\npaths: {}\n`,\n output: { path: '.\u002Fsrc\u002Fgen' },\n})",[13,1170,1171,57,1185,57,1187,57,1197,57,1208,57,1213,57,1218,57,1223,57,1228,57,1233,57,1239,57,1259],{"class":29},[31,1172,1173,1175,1177,1179,1181,1183],{"class":33,"style":34},[31,1174,38],{"style":37},[31,1176,42],{"style":41},[31,1178,46],{"style":45},[31,1180,49],{"style":41},[31,1182,52],{"style":37},[31,1184,56],{"style":55},[31,1186],{"class":33,"style":34},[31,1188,1189,1191,1193,1195],{"class":33,"style":34},[31,1190,80],{"style":37},[31,1192,83],{"style":37},[31,1194,19],{"style":86},[31,1196,89],{"style":41},[31,1198,1199,1201,1203,1205],{"class":33,"style":34},[31,1200,94],{"style":41},[31,1202,113],{"style":41},[31,1204,100],{"style":37},[31,1206,1207],{"style":55},"`",[31,1209,1210],{"class":33,"style":34},[31,1211,1212],{"style":55},"openapi: 3.1.0",[31,1214,1215],{"class":33,"style":34},[31,1216,1217],{"style":55},"info:",[31,1219,1220],{"class":33,"style":34},[31,1221,1222],{"style":55}," title: Pet Store",[31,1224,1225],{"class":33,"style":34},[31,1226,1227],{"style":55}," version: 1.0.0",[31,1229,1230],{"class":33,"style":34},[31,1231,1232],{"style":55},"paths: {}",[31,1234,1235,1237],{"class":33,"style":34},[31,1236,1207],{"style":55},[31,1238,106],{"style":37},[31,1240,1241,1243,1245,1247,1249,1251,1253,1255,1257],{"class":33,"style":34},[31,1242,94],{"style":37},[31,1244,127],{"style":41},[31,1246,100],{"style":37},[31,1248,42],{"style":41},[31,1250,134],{"style":41},[31,1252,100],{"style":37},[31,1254,139],{"style":55},[31,1256,142],{"style":41},[31,1258,106],{"style":37},[31,1260,1261],{"class":33,"style":34},[31,1262,169],{"style":41},[22,1264,1267],{"language":24,"filename":1265,"code":1266,"class":26},"Object","import { defineConfig } from 'kubb\u002Fconfig'\nimport spec from '.\u002FpetStore.json' with { type: 'json' }\n\nexport default defineConfig({\n input: spec,\n output: { path: '.\u002Fsrc\u002Fgen' },\n})",[13,1268,1269,57,1283,57,1310,57,1312,57,1322,57,1335,57,1355],{"class":29},[31,1270,1271,1273,1275,1277,1279,1281],{"class":33,"style":34},[31,1272,38],{"style":37},[31,1274,42],{"style":41},[31,1276,46],{"style":45},[31,1278,49],{"style":41},[31,1280,52],{"style":37},[31,1282,56],{"style":55},[31,1284,1285,1287,1290,1292,1295,1298,1300,1303,1305,1308],{"class":33,"style":34},[31,1286,38],{"style":37},[31,1288,1289],{"style":45},"spec ",[31,1291,52],{"style":37},[31,1293,1294],{"style":55},"'.\u002FpetStore.json' ",[31,1296,1297],{"style":37},"with ",[31,1299,42],{"style":41},[31,1301,1302],{"style":41},"type",[31,1304,100],{"style":37},[31,1306,1307],{"style":55},"'json' ",[31,1309,142],{"style":41},[31,1311],{"class":33,"style":34},[31,1313,1314,1316,1318,1320],{"class":33,"style":34},[31,1315,80],{"style":37},[31,1317,83],{"style":37},[31,1319,19],{"style":86},[31,1321,89],{"style":41},[31,1323,1324,1326,1328,1330,1333],{"class":33,"style":34},[31,1325,94],{"style":41},[31,1327,113],{"style":41},[31,1329,100],{"style":37},[31,1331,1332],{"style":45},"spec",[31,1334,106],{"style":37},[31,1336,1337,1339,1341,1343,1345,1347,1349,1351,1353],{"class":33,"style":34},[31,1338,94],{"style":37},[31,1340,127],{"style":41},[31,1342,100],{"style":37},[31,1344,42],{"style":41},[31,1346,134],{"style":41},[31,1348,100],{"style":37},[31,1350,139],{"style":55},[31,1352,142],{"style":41},[31,1354,106],{"style":37},[31,1356,1357],{"class":33,"style":34},[31,1358,169],{"style":41},[10,1360,1361,1362,1366,1367,194],{},"See ",[190,1363,1365],{"href":1364},"#git-input","Git input"," for refs and credentials, and ",[190,1368,1370,1371,1374],{"href":1369},"#external-refs","External ",[13,1372,1373],{},"$ref"," files",[205,1376,1377],{"id":127},[13,1378,127],{},[10,1380,1381,1382,286,1385,1388,1389,1392,1393,1397],{},"Where and how Kubb writes files. ",[13,1383,1384],{},"output.mode",[13,1386,1387],{},"output.banner",", and ",[13,1390,1391],{},"output.footer"," are ",[190,1394,1396],{"href":1395},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output","plugin options"," only.",[1399,1400,1402],"h4",{"id":1401},"outputpath",[13,1403,668],{},[847,1405,1406,1407,1409],{"type":849,":required":375},"The folder for generated files, absolute or relative to ",[13,1408,792],{},". Plugin output paths resolve inside it.",[1399,1411,1413],{"id":1412},"outputclean",[13,1414,678],{},[847,1416,1418,1431],{"type":1417},"boolean",[10,1419,1420,1421,1423,1424,1428,1429,194],{},"Remove every file in ",[13,1422,668],{}," before generating, and in the ",[190,1425,1426],{"href":614},[13,1427,617],{}," directory when one is set. Default: ",[13,1430,683],{},[1432,1433,1435,1436,1439,1440,1446,1447,1449],"blockquote",{"as":1434},"warning","Use ",[13,1437,1438],{},"clean: true"," only on a generated-code folder. Kubb stops with ",[190,1441,1443],{"href":1442},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-clean-root",[13,1444,1445],{},"KUBB_CLEAN_ROOT"," when ",[13,1448,668],{}," is the project root or a parent of it.",[1399,1451,1453],{"id":1452},"outputformat",[13,1454,690],{},[847,1456,1458,1463],{"type":1457},"'auto' | 'prettier' | 'biome' | 'oxfmt' | false",[10,1459,1460,1461,194],{},"The formatter for the generated files. Default: ",[13,1462,683],{},[10,1464,1465,1468],{},[13,1466,1467],{},"'auto'"," runs the first installed of oxfmt, Biome, and Prettier. A tool name forces that tool, which reads its own config.",[1399,1470,1472],{"id":1471},"outputlint",[13,1473,701],{},[847,1475,1477,1482],{"type":1476},"'auto' | 'eslint' | 'biome' | 'oxlint' | false",[10,1478,1479,1480,194],{},"The linter for the generated files. Default: ",[13,1481,683],{},[10,1483,1484,1486],{},[13,1485,1467],{}," runs the first installed of oxlint, Biome, and ESLint. A tool name forces that tool.",[1399,1488,1490],{"id":1489},"outputpostgenerate",[13,1491,1492],{},"output.postGenerate",[847,1494,1496,1506,1625],{"type":1495},"Array\u003Cstring | { name?: string; command: string }>",[10,1497,1498,1499,1501,1502,1505],{},"Commands to run in order from ",[13,1500,792],{}," after formatting and linting, such as a type check. ",[13,1503,1504],{},"{ name, command }"," labels a step in the CLI output.",[22,1507,1509],{"language":24,"filename":15,"code":1508,"class":26},"import { defineConfig } from 'kubb\u002Fconfig'\n\nexport default defineConfig({\n input: '.\u002FpetStore.yaml',\n output: {\n path: '.\u002Fsrc\u002Fgen',\n postGenerate: [{ name: 'types', command: 'npm run typecheck' }, 'biome check --write .\u002Fsrc\u002Fgen'],\n },\n})",[13,1510,1511,57,1525,57,1527,57,1537,57,1549,57,1559,57,1572,57,1613,57,1621],{"class":29},[31,1512,1513,1515,1517,1519,1521,1523],{"class":33,"style":34},[31,1514,38],{"style":37},[31,1516,42],{"style":41},[31,1518,46],{"style":45},[31,1520,49],{"style":41},[31,1522,52],{"style":37},[31,1524,56],{"style":55},[31,1526],{"class":33,"style":34},[31,1528,1529,1531,1533,1535],{"class":33,"style":34},[31,1530,80],{"style":37},[31,1532,83],{"style":37},[31,1534,19],{"style":86},[31,1536,89],{"style":41},[31,1538,1539,1541,1543,1545,1547],{"class":33,"style":34},[31,1540,94],{"style":41},[31,1542,113],{"style":41},[31,1544,100],{"style":37},[31,1546,118],{"style":55},[31,1548,106],{"style":37},[31,1550,1551,1553,1555,1557],{"class":33,"style":34},[31,1552,94],{"style":37},[31,1554,127],{"style":41},[31,1556,100],{"style":37},[31,1558,898],{"style":41},[31,1560,1561,1564,1566,1568,1570],{"class":33,"style":34},[31,1562,1563],{"style":41}," ",[31,1565,134],{"style":41},[31,1567,100],{"style":37},[31,1569,283],{"style":55},[31,1571,106],{"style":37},[31,1573,1574,1576,1579,1581,1584,1586,1588,1591,1593,1596,1598,1601,1603,1605,1608,1611],{"class":33,"style":34},[31,1575,1563],{"style":37},[31,1577,1578],{"style":41},"postGenerate",[31,1580,100],{"style":37},[31,1582,1583],{"style":41},"[{ ",[31,1585,97],{"style":41},[31,1587,100],{"style":37},[31,1589,1590],{"style":55},"'types'",[31,1592,286],{"style":37},[31,1594,1595],{"style":41},"command",[31,1597,100],{"style":37},[31,1599,1600],{"style":55},"'npm run typecheck' ",[31,1602,142],{"style":41},[31,1604,286],{"style":37},[31,1606,1607],{"style":55},"'biome check --write .\u002Fsrc\u002Fgen'",[31,1609,1610],{"style":41},"]",[31,1612,106],{"style":37},[31,1614,1615,1617,1619],{"class":33,"style":34},[31,1616,94],{"style":37},[31,1618,142],{"style":41},[31,1620,106],{"style":37},[31,1622,1623],{"class":33,"style":34},[31,1624,169],{"style":41},[10,1626,1627,1628,1630,1631,286,1637,1643,1644,194],{},"Format, lint, and ",[13,1629,1578],{}," run only after a build without errors. A failing step reports ",[190,1632,1634],{"href":1633},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-format-failed",[13,1635,1636],{},"KUBB_FORMAT_FAILED",[190,1638,1640],{"href":1639},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-lint-failed",[13,1641,1642],{},"KUBB_LINT_FAILED",", or ",[190,1645,1647],{"href":1646},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-post-generate-failed",[13,1648,1649],{},"KUBB_POST_GENERATE_FAILED",[1399,1651,1653],{"id":1652},"outputbarrel",[13,1654,712],{},[847,1656,1658,1659,1661,1662,100,1664,799,1667,1670,1671,1676,1677,1679,1680,1682,1683,194],{"type":1657},"{ type: 'all' | 'named' } | false","The root ",[13,1660,720],{}," at ",[13,1663,668],{},[13,1665,1666],{},"{ type: 'named' }",[13,1668,1669],{},"{ type: 'all' }",", as on the plugin-level ",[190,1672,1674],{"href":1673},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output-barrel",[13,1675,712],{},". Default: ",[13,1678,683],{},". A plugin without its own ",[13,1681,712],{}," inherits it. See ",[190,1684,1686],{"href":1685},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Frecipes#barrel-files","Add barrel files",[1399,1688,1690],{"id":1689},"outputdefaultbanner",[13,1691,727],{},[847,1693,1695,1707],{"type":1694},"'simple' | 'full' | false",[10,1696,1697,1698,1700,1701,1706],{},"The notice Kubb writes at the top of each generated file. Default: ",[13,1699,732],{},". A plugin's ",[190,1702,1704],{"href":1703},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output-banner",[13,1705,1387],{}," replaces it.",[957,1708,1709,1736,1773],{},[22,1710,1713],{"language":24,"filename":1711,"code":1712,"class":26},"simple","\u002F**\n * Generated by Kubb (https:\u002F\u002Fkubb.dev\u002F).\n * Do not edit manually.\n *\u002F",[13,1714,1715,57,1721,57,1726,57,1731],{"class":29},[31,1716,1717],{"class":33,"style":34},[31,1718,1720],{"style":1719},"color:#6a737d;--hls-dark:#6a737d","\u002F**",[31,1722,1723],{"class":33,"style":34},[31,1724,1725],{"style":1719}," * Generated by Kubb (https:\u002F\u002Fkubb.dev\u002F).",[31,1727,1728],{"class":33,"style":34},[31,1729,1730],{"style":1719}," * Do not edit manually.",[31,1732,1733],{"class":33,"style":34},[31,1734,1735],{"style":1719}," *\u002F",[22,1737,1740],{"language":24,"filename":1738,"code":1739,"class":26},"full","\u002F**\n * Generated by Kubb (https:\u002F\u002Fkubb.dev\u002F).\n * Do not edit manually.\n * Source: petStore.yaml\n * Title: Pet Store\n * OpenAPI spec version: 1.0.0\n *\u002F",[13,1741,1742,57,1746,57,1750,57,1754,57,1759,57,1764,57,1769],{"class":29},[31,1743,1744],{"class":33,"style":34},[31,1745,1720],{"style":1719},[31,1747,1748],{"class":33,"style":34},[31,1749,1725],{"style":1719},[31,1751,1752],{"class":33,"style":34},[31,1753,1730],{"style":1719},[31,1755,1756],{"class":33,"style":34},[31,1757,1758],{"style":1719}," * Source: petStore.yaml",[31,1760,1761],{"class":33,"style":34},[31,1762,1763],{"style":1719}," * Title: Pet Store",[31,1765,1766],{"class":33,"style":34},[31,1767,1768],{"style":1719}," * OpenAPI spec version: 1.0.0",[31,1770,1771],{"class":33,"style":34},[31,1772,1735],{"style":1719},[22,1774,1776],{"language":24,"filename":683,"code":1775,"class":26},"\u002F\u002F no banner",[13,1777,1778],{"class":29},[31,1779,1780],{"class":33,"style":34},[31,1781,1775],{"style":1719},[205,1783,1784],{"id":617},[13,1785,617],{},[847,1787,1789,1805,2052,2074],{"type":1788},"{ path: string }",[10,1790,1791,1792,1796,1797,1799,1800,1804],{},"Directory for schemas that several configs of an ",[190,1793,1795],{"href":1794},"#multiple-configurations-array","array"," define identically. Kubb writes each one once under ",[13,1798,134],{},", resolved against ",[190,1801,1802],{"href":939},[13,1803,792],{},", and every other generated file imports it from there. Give every config the same value:",[22,1806,1809],{"language":24,"meta":1807,"code":1808,"filename":15,"class":26},"twoslash","import { defineConfig } from 'kubb\u002Fconfig'\nimport { pluginTs } from '@kubb\u002Fplugin-ts'\nimport { pluginZod } from '@kubb\u002Fplugin-zod'\n\nconst shared = { path: '.\u002Fsrc\u002Fgen\u002Fcommon' }\n\nexport default defineConfig([\n {\n input: '.\u002Fanimals.json',\n output: { path: '.\u002Fsrc\u002Fgen\u002Fanimals' },\n shared,\n plugins: [pluginTs(), pluginZod()],\n },\n {\n input: '.\u002Ffruits.json',\n output: { path: '.\u002Fsrc\u002Fgen\u002Ffruits' },\n shared,\n plugins: [pluginTs(), pluginZod()],\n },\n])",[13,1810,1811,57,1825,57,1839,57,1855,57,1857,57,1879,57,1881,57,1891,57,1896,57,1909,57,1930,57,1938,57,1962,57,1970,57,1976,57,1989,57,2010,57,2018,57,2040,57,2048],{"class":29},[31,1812,1813,1815,1817,1819,1821,1823],{"class":33,"style":34},[31,1814,38],{"style":37},[31,1816,42],{"style":41},[31,1818,46],{"style":45},[31,1820,49],{"style":41},[31,1822,52],{"style":37},[31,1824,56],{"style":55},[31,1826,1827,1829,1831,1833,1835,1837],{"class":33,"style":34},[31,1828,38],{"style":37},[31,1830,42],{"style":41},[31,1832,66],{"style":45},[31,1834,49],{"style":41},[31,1836,52],{"style":37},[31,1838,73],{"style":55},[31,1840,1841,1843,1845,1848,1850,1852],{"class":33,"style":34},[31,1842,38],{"style":37},[31,1844,42],{"style":41},[31,1846,1847],{"style":45},"pluginZod ",[31,1849,49],{"style":41},[31,1851,52],{"style":37},[31,1853,1854],{"style":55},"'@kubb\u002Fplugin-zod'",[31,1856],{"class":33,"style":34},[31,1858,1859,1862,1865,1868,1870,1872,1874,1877],{"class":33,"style":34},[31,1860,1861],{"style":37},"const ",[31,1863,1864],{"style":45},"shared ",[31,1866,1867],{"style":37},"= ",[31,1869,42],{"style":41},[31,1871,134],{"style":41},[31,1873,100],{"style":37},[31,1875,1876],{"style":55},"'.\u002Fsrc\u002Fgen\u002Fcommon' ",[31,1878,142],{"style":41},[31,1880],{"class":33,"style":34},[31,1882,1883,1885,1887,1889],{"class":33,"style":34},[31,1884,80],{"style":37},[31,1886,83],{"style":37},[31,1888,19],{"style":86},[31,1890,499],{"style":41},[31,1892,1893],{"class":33,"style":34},[31,1894,1895],{"style":41}," {",[31,1897,1898,1900,1902,1904,1907],{"class":33,"style":34},[31,1899,1563],{"style":41},[31,1901,113],{"style":41},[31,1903,100],{"style":37},[31,1905,1906],{"style":55},"'.\u002Fanimals.json'",[31,1908,106],{"style":37},[31,1910,1911,1913,1915,1917,1919,1921,1923,1926,1928],{"class":33,"style":34},[31,1912,1563],{"style":37},[31,1914,127],{"style":41},[31,1916,100],{"style":37},[31,1918,42],{"style":41},[31,1920,134],{"style":41},[31,1922,100],{"style":37},[31,1924,1925],{"style":55},"'.\u002Fsrc\u002Fgen\u002Fanimals' ",[31,1927,142],{"style":41},[31,1929,106],{"style":37},[31,1931,1932,1934,1936],{"class":33,"style":34},[31,1933,1563],{"style":37},[31,1935,617],{"style":45},[31,1937,106],{"style":37},[31,1939,1940,1942,1944,1946,1948,1950,1953,1955,1958,1960],{"class":33,"style":34},[31,1941,1563],{"style":37},[31,1943,151],{"style":41},[31,1945,100],{"style":37},[31,1947,156],{"style":41},[31,1949,159],{"style":86},[31,1951,1952],{"style":41},"()",[31,1954,286],{"style":37},[31,1956,1957],{"style":86},"pluginZod",[31,1959,162],{"style":41},[31,1961,106],{"style":37},[31,1963,1964,1966,1968],{"class":33,"style":34},[31,1965,94],{"style":37},[31,1967,142],{"style":41},[31,1969,106],{"style":37},[31,1971,1972,1974],{"class":33,"style":34},[31,1973,94],{"style":37},[31,1975,898],{"style":41},[31,1977,1978,1980,1982,1984,1987],{"class":33,"style":34},[31,1979,1563],{"style":41},[31,1981,113],{"style":41},[31,1983,100],{"style":37},[31,1985,1986],{"style":55},"'.\u002Ffruits.json'",[31,1988,106],{"style":37},[31,1990,1991,1993,1995,1997,1999,2001,2003,2006,2008],{"class":33,"style":34},[31,1992,1563],{"style":37},[31,1994,127],{"style":41},[31,1996,100],{"style":37},[31,1998,42],{"style":41},[31,2000,134],{"style":41},[31,2002,100],{"style":37},[31,2004,2005],{"style":55},"'.\u002Fsrc\u002Fgen\u002Ffruits' ",[31,2007,142],{"style":41},[31,2009,106],{"style":37},[31,2011,2012,2014,2016],{"class":33,"style":34},[31,2013,1563],{"style":37},[31,2015,617],{"style":45},[31,2017,106],{"style":37},[31,2019,2020,2022,2024,2026,2028,2030,2032,2034,2036,2038],{"class":33,"style":34},[31,2021,1563],{"style":37},[31,2023,151],{"style":41},[31,2025,100],{"style":37},[31,2027,156],{"style":41},[31,2029,159],{"style":86},[31,2031,1952],{"style":41},[31,2033,286],{"style":37},[31,2035,1957],{"style":86},[31,2037,162],{"style":41},[31,2039,106],{"style":37},[31,2041,2042,2044,2046],{"class":33,"style":34},[31,2043,94],{"style":37},[31,2045,142],{"style":41},[31,2047,106],{"style":37},[31,2049,2050],{"class":33,"style":34},[31,2051,608],{"style":41},[10,2053,2054,2055,631,2058,2061,2062,2065,2066,2069,2070,2073],{},"When ",[13,2056,2057],{},"animals.json",[13,2059,2060],{},"fruits.json"," both define ",[13,2063,2064],{},"Name",", Kubb writes ",[13,2067,2068],{},"src\u002Fgen\u002Fcommon\u002Ftypes\u002FName.ts"," once, and ",[13,2071,2072],{},"src\u002Fgen\u002Fanimals\u002Ftypes\u002FAnimal.ts"," imports it.",[2075,2076,2077,2081,2092,2095,2113],"ul",{},[2078,2079,2080],"li",{},"When configs define a schema differently, the largest matching group shares it, the others keep their own copy, and Kubb warns with its name.",[2078,2082,2083,2084,2087,2088,2091],{},"A plugin with ",[13,2085,2086],{},"output.mode: 'file'"," or a custom ",[13,2089,2090],{},"file.path"," shares nothing. Neither does a sandbox or managed Studio agent.",[2078,2093,2094],{},"Barrels re-export the shared schemas a config defines. The shared directory gets no barrels.",[2078,2096,2097,286,2102,631,2107,2112],{},[190,2098,2100],{"href":2099},"#outputformat",[13,2101,690],{},[190,2103,2105],{"href":2104},"#outputlint",[13,2106,701],{},[190,2108,2110],{"href":2109},"#outputclean",[13,2111,678],{}," apply to the shared directory too.",[2078,2114,2115,2116,2118,2119,2121],{},"Keep ",[13,2117,134],{}," outside every ",[13,2120,668],{},", and give the configs the same plugin options. Kubb warns when two configs write a shared file differently, and the last one wins.",[205,2123,2124],{"id":151},[13,2125,151],{},[847,2127,2129,2130,2133,2134,2136,2137,2143,2144,194],{"type":2128},"Array\u003CPlugin>","The plugins to run, in dependency order. Default: ",[13,2131,2132],{},"[]",", with ",[13,2135,743],{}," appended when missing. A missing required dependency fails with ",[190,2138,2140],{"href":2139},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-missing-dependency",[13,2141,2142],{},"KUBB_MISSING_DEPENDENCY",". See ",[190,2145,2147],{"href":2146},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options","Shared plugin options",[205,2149,2150],{"id":751},[13,2151,751],{},[847,2153,2155,2163],{"type":2154},"Adapter",[10,2156,2157,2158,2160,2161,194],{},"Turns your input into Kubb's AST. Default: ",[13,2159,756],{},", bundled with ",[13,2162,637],{},[10,2164,2165,2166,2169,2170,826,2173,2175,2176,194],{},"To pass options, such as ",[13,2167,2168],{},"adapterOas({ validate: false })",", install and import ",[13,2171,2172],{},"@kubb\u002Fadapter-oas",[13,2174,637],{}," does not re-export it. See the ",[190,2177,2179],{"href":2178},"\u002Fextensions\u002Fkubb-labs\u002Fadapter-oas\u002Foptions","adapter options",[205,2181,2182],{"id":768},[13,2183,768],{},[847,2185,2187,2204],{"type":2186},"Array\u003CParser>",[10,2188,2189,2190,1676,2193,2160,2195,2197,2198,194],{},"Turn file nodes into source text, each for the extensions in its ",[13,2191,2192],{},"extNames",[13,2194,773],{},[13,2196,637],{},". A list you pass replaces the default. See ",[190,2199,2201],{"href":2200},"\u002Fextensions\u002Fkubb-labs\u002Fparser-ts",[13,2202,2203],{},"@kubb\u002Fparser-ts",[22,2205,2207],{"language":24,"filename":15,"code":2206,"class":26},"import { defineConfig } from 'kubb\u002Fconfig'\nimport { parserTs, parserTsx } from '@kubb\u002Fparser-ts'\n\nexport default defineConfig({\n input: '.\u002FpetStore.yaml',\n output: { path: '.\u002Fsrc\u002Fgen' },\n parsers: [parserTs(), parserTsx()],\n})",[13,2208,2209,57,2223,57,2244,57,2246,57,2256,57,2268,57,2288,57,2311],{"class":29},[31,2210,2211,2213,2215,2217,2219,2221],{"class":33,"style":34},[31,2212,38],{"style":37},[31,2214,42],{"style":41},[31,2216,46],{"style":45},[31,2218,49],{"style":41},[31,2220,52],{"style":37},[31,2222,56],{"style":55},[31,2224,2225,2227,2229,2232,2234,2237,2239,2241],{"class":33,"style":34},[31,2226,38],{"style":37},[31,2228,42],{"style":41},[31,2230,2231],{"style":45},"parserTs",[31,2233,286],{"style":37},[31,2235,2236],{"style":45},"parserTsx ",[31,2238,49],{"style":41},[31,2240,52],{"style":37},[31,2242,2243],{"style":55},"'@kubb\u002Fparser-ts'",[31,2245],{"class":33,"style":34},[31,2247,2248,2250,2252,2254],{"class":33,"style":34},[31,2249,80],{"style":37},[31,2251,83],{"style":37},[31,2253,19],{"style":86},[31,2255,89],{"style":41},[31,2257,2258,2260,2262,2264,2266],{"class":33,"style":34},[31,2259,94],{"style":41},[31,2261,113],{"style":41},[31,2263,100],{"style":37},[31,2265,118],{"style":55},[31,2267,106],{"style":37},[31,2269,2270,2272,2274,2276,2278,2280,2282,2284,2286],{"class":33,"style":34},[31,2271,94],{"style":37},[31,2273,127],{"style":41},[31,2275,100],{"style":37},[31,2277,42],{"style":41},[31,2279,134],{"style":41},[31,2281,100],{"style":37},[31,2283,139],{"style":55},[31,2285,142],{"style":41},[31,2287,106],{"style":37},[31,2289,2290,2292,2294,2296,2298,2300,2302,2304,2307,2309],{"class":33,"style":34},[31,2291,94],{"style":37},[31,2293,768],{"style":41},[31,2295,100],{"style":37},[31,2297,156],{"style":41},[31,2299,2231],{"style":86},[31,2301,1952],{"style":41},[31,2303,286],{"style":37},[31,2305,2306],{"style":86},"parserTsx",[31,2308,162],{"style":41},[31,2310,106],{"style":37},[31,2312,2313],{"class":33,"style":34},[31,2314,169],{"style":41},[205,2316,2317],{"id":780},[13,2318,780],{},[847,2320,2322,2323,2325,2326,627,2329,2332,2333,2336],{"type":2321},"Storage","Where generated files go. Default: ",[13,2324,785],{},", which writes to disk. ",[13,2327,2328],{},"memoryStorage()",[13,2330,2331],{},"kubb\u002Fkit"," keeps them in memory. See ",[190,2334,2321],{"href":2335},"\u002Fdocs\u002F5.x\u002Fintroduction\u002Farchitecture#storage"," for a custom backend.",[205,2338,2339],{"id":792},[13,2340,792],{},[847,2342,2343,2344,631,2346,2348,2349,799,2351,2353,2354,2356,2357,2359,2360,194],{"type":849},"The project root that ",[13,2345,113],{},[13,2347,668],{}," resolve against. Default: the config file's folder, or the folder above ",[13,2350,798],{},[13,2352,802],{},". A relative ",[13,2355,792],{}," resolves from that folder. See ",[190,2358,193],{"href":192}," for ",[13,2361,634],{},[205,2363,2364],{"id":408},[13,2365,408],{},[847,2367,2369,2370,286,2373,286,2376,1388,2379,2382,2383,2387,2388,194],{"type":2368},"Array\u003CReporter>","The reporters a run can use. Default: the built-in ",[13,2371,2372],{},"cli",[13,2374,2375],{},"json",[13,2377,2378],{},"file",[13,2380,2381],{},"html"," reporters. The ",[190,2384,2385],{"href":418},[13,2386,421],{}," flag picks which ones run and defaults to ",[13,2389,2372],{},[205,2391,2393],{"id":2392},"diagnostics",[13,2394,2392],{},[847,2396,2398,2414],{"type":2397},"{ ignore?: Array\u003Cstring> }",[10,2399,2400,2401,2404,2405,2408,2409,2413],{},"Diagnostic codes to hide. ",[13,2402,2403],{},"ignore"," drops warnings and info with a listed code from the terminal, the reports, and ",[13,2406,2407],{},"safeBuild().diagnostics",". Errors still show and still fail the run. See ",[190,2410,2412],{"href":2411},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics","Diagnostics"," for the codes.",[22,2415,2418],{"language":2416,"filename":15,"code":2417,"class":26},"ts","export default defineConfig({\n diagnostics: { ignore: ['KUBB_UNSUPPORTED_FORMAT'] },\n})",[13,2419,2421,57,2431,57,2455],{"class":2420},"language-ts",[31,2422,2423,2425,2427,2429],{"class":33,"style":34},[31,2424,80],{"style":37},[31,2426,83],{"style":37},[31,2428,19],{"style":86},[31,2430,89],{"style":41},[31,2432,2433,2435,2437,2439,2441,2443,2445,2447,2450,2453],{"class":33,"style":34},[31,2434,94],{"style":41},[31,2436,2392],{"style":41},[31,2438,100],{"style":37},[31,2440,42],{"style":41},[31,2442,2403],{"style":41},[31,2444,100],{"style":37},[31,2446,156],{"style":41},[31,2448,2449],{"style":55},"'KUBB_UNSUPPORTED_FORMAT'",[31,2451,2452],{"style":41},"] }",[31,2454,106],{"style":37},[31,2456,2457],{"class":33,"style":34},[31,2458,169],{"style":41},[2460,2461],"studio-cta",{"source":2462},"configuration-reference",[171,2464,2466],{"id":2465},"less-common-cases","Less common cases",[205,2468,193],{"id":2469},"config-loading",[10,2471,2472,2473,286,2475,2478],{},"Without ",[13,2474,180],{},[13,2476,2477],{},"kubb generate"," searches for a config file and turns its default export into one config per entry.",[2480,2481],"mermaid",{"svg":2482},"\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" class=\"pele pele-flowchart\" viewBox=\"0 0 410 1102\" width=\"410\" height=\"1102\" style=\"--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\">\u003Cg class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\">\u003Cg class=\"pele-edge\" data-id=\"L_cli_flag_0\">\u003Cpath d=\"M213.09,56L213.09,97\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M213.09,104L209.73,96L216.45,96Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_flag_load_0\">\u003Cpath d=\"M205.09,196.02C205.09,235.02 135.18,235.02 135.18,274.02L135.18,340.02C135.18,357.52 201.28,357.52 201.28,375.02L201.28,381.02\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M201.28,388.02L197.92,380.02L204.64,380.02Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_flag_search_0\">\u003Cpath d=\"M221.09,196.02C221.09,208.77 291,208.77 291,221.52L291,267.02\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M291,274.02L287.64,266.02L294.36,266.02Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_search_load_0\">\u003Cpath d=\"M291,340.02C291,357.52 224.9,357.52 224.9,375.02L224.9,381.02\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M224.9,388.02L221.54,380.02L228.26,380.02Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_load_form_0\">\u003Cpath d=\"M213.09,436.02L213.09,477.02\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M213.09,484.02L209.73,476.02L216.45,476.02Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_form_fn_0\">\u003Cpath d=\"M203.05,582C203.05,595.38 118.48,595.38 118.48,608.77L118.48,654.27\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M118.48,661.27L115.12,653.27L121.84,653.27Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_form_list_0\">\u003Cpath d=\"M223.13,582C223.13,621.63 307.7,621.63 307.7,661.27L307.7,709.27C307.7,726.77 251.57,726.77 251.57,744.27L251.57,750.27\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M251.57,757.27L248.21,749.27L254.93,749.27Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_fn_list_0\">\u003Cpath d=\"M118.48,709.27C118.48,726.77 174.61,726.77 174.61,744.27L174.61,750.27\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M174.61,757.27L171.25,749.27L177.97,749.27Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_list_defaults_0\">\u003Cpath d=\"M213.09,805.27L213.09,846.27\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M213.09,853.27L209.73,845.27L216.45,845.27Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_defaults_rootdir_0\">\u003Cpath d=\"M213.09,901.27L213.09,942.27\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M213.09,949.27L209.73,941.27L216.45,941.27Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_rootdir_gen_0\">\u003Cpath d=\"M213.09,997.27L213.09,1038.27\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M213.09,1045.27L209.73,1037.27L216.45,1037.27Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-edge-labels\" font-size=\"14\">\u003Cg class=\"pele-edge-label\" data-id=\"L_flag_load_0\">\u003Crect x=\"120.29\" y=\"296.52\" width=\"29.78\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"135.18\" y=\"311.92\" text-anchor=\"middle\">yes\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"L_flag_search_0\">\u003Crect x=\"279.21\" y=\"223.52\" width=\"23.57\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"291\" y=\"238.92\" text-anchor=\"middle\">no\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"L_form_fn_0\">\u003Crect x=\"89.97\" y=\"610.77\" width=\"57.03\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"118.48\" y=\"626.17\" text-anchor=\"middle\">function\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"L_form_list_0\">\u003Crect x=\"258.96\" y=\"674.77\" width=\"97.47\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"307.7\" y=\"690.17\" text-anchor=\"middle\">object or array\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-nodes\">\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"cli\" transform=\"translate(213.09,32)\">\u003Crect x=\"-69.14\" y=\"-24\" width=\"138.29\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">kubb generate\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-diam\" data-id=\"flag\" transform=\"translate(213.09,152.51)\">\u003Cpolygon points=\"0,-48.51 77.62,0 0,48.51 -77.62,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">--config set?\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"load\" transform=\"translate(213.09,412.02)\">\u003Crect x=\"-63.81\" y=\"-24\" width=\"127.62\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Load that file\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"search\" transform=\"translate(291,307.02)\">\u003Crect x=\"-110.93\" y=\"-33\" width=\"221.86\" height=\"66\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\">\u003Ctspan x=\"0\" y=\"-4.9\">Search the working folder,\u003C\u002Ftspan>\u003Ctspan x=\"0\" y=\"16.1\">then each parent\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-diam\" data-id=\"form\" transform=\"translate(213.09,536.15)\">\u003Cpolygon points=\"0,-52.12 83.4,0 0,52.12 -83.4,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Default export\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"fn\" transform=\"translate(118.48,685.27)\">\u003Crect x=\"-110.48\" y=\"-24\" width=\"220.96\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Call it with the CLI context\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"list\" transform=\"translate(213.09,781.27)\">\u003Crect x=\"-90.48\" y=\"-24\" width=\"180.96\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">One config per entry\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect core\" data-id=\"defaults\" transform=\"translate(213.09,877.27)\">\u003Crect x=\"-106.93\" y=\"-24\" width=\"213.86\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">defineConfig fills defaults\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"rootdir\" transform=\"translate(213.09,973.27)\">\u003Crect x=\"-62.9\" y=\"-24\" width=\"125.81\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Resolve root\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"gen\" transform=\"translate(213.09,1069.27)\">\u003Crect x=\"-94.49\" y=\"-24\" width=\"188.98\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Generate each config\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>",[2075,2484,2485,2501,2522],{},[2078,2486,2487,2488,2491,2492,2495,2496,631,2498,2500],{},"In each folder, ",[13,2489,2490],{},".kubbrc.*"," comes before ",[13,2493,2494],{},"kubb.config.*",", and the folder before its ",[13,2497,798],{},[13,2499,802],{}," subfolders.",[2078,2502,2503,2504,286,2507,286,2510,286,2513,286,2516,286,2519,194],{},"Extensions are tried in the order ",[13,2505,2506],{},".ts",[13,2508,2509],{},".mts",[13,2511,2512],{},".cts",[13,2514,2515],{},".js",[13,2517,2518],{},".mjs",[13,2520,2521],{},".cjs",[2078,2523,2524,2525,194],{},"When nothing matches, the CLI stops and suggests ",[13,2526,2527],{},"kubb init",[1399,2529,2531],{"id":2530},"root-folder","Root folder",[10,2533,2472,2534,2538,2539,799,2541,194],{},[190,2535,2536],{"href":939},[13,2537,792],{},", the root is the config file's folder, or its parent for a config in ",[13,2540,798],{},[13,2542,802],{},[2075,2544,2545,2551],{},[2078,2546,2547,2548,2550],{},"A relative ",[13,2549,792],{}," resolves from that folder.",[2078,2552,2553,2555,2556,194],{},[13,2554,634],{}," without a config file uses ",[13,2557,825],{},[1399,2559,2561],{"id":2560},"defaults-outside-the-cli","Defaults outside the CLI",[10,2563,2472,2564,2566,2567,2570],{},[13,2565,2477],{},", fewer ",[190,2568,621],{"href":2569},"#defaults"," apply:",[2075,2572,2573,2591],{},[2078,2574,2575,627,2577,2579,2580,286,2582,286,2584,286,2586,1388,2588,2590],{},[13,2576,634],{},[13,2578,831],{}," applies only the ",[13,2581,792],{},[13,2583,780],{},[13,2585,690],{},[13,2587,701],{},[13,2589,727],{}," defaults.",[2078,2592,2593,2597,2598,2600],{},[190,2594,2596],{"href":2595},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Fbuild-tools","Build tool integrations"," apply the ",[13,2599,19],{}," defaults, but run only the summary reporter.",[1399,2602,2604],{"id":2603},"extension-commands","Extension commands",[10,2606,2607,286,2610,286,2613,1388,2616,2619,2620,2622,2623,2625,2626,631,2629,2632,2633,194],{},[13,2608,2609],{},"kubb add",[13,2611,2612],{},"kubb update",[13,2614,2615],{},"kubb list",[13,2617,2618],{},"kubb remove"," read ",[13,2621,180],{},", or search for a config as ",[13,2624,2477],{}," does. With several config entries, ",[13,2627,2628],{},"add",[13,2630,2631],{},"remove"," edit the first one. See ",[190,2634,2636],{"href":2635},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands#project-files","Project files",[1399,2638,2640],{"id":2639},"kubb-validate","kubb validate",[10,2642,2643,2644,2646,2647,194],{},"The adapter ",[13,2645,2640],{}," runs depends on the config it finds. See ",[190,2648,2650],{"href":2649},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fvalidate#which-adapter-runs","Which adapter runs",[310,2652,2653,2662],{},[313,2654,2655],{},[316,2656,2657,2660],{},[319,2658,2659],{},"Situation",[319,2661,2154],{},[329,2663,2664,2675,2683],{},[316,2665,2666,2669],{},[334,2667,2668],{},"A config is found or passed",[334,2670,2671,2672,2674],{},"Each entry's adapter. A local path resolves from the entry's ",[13,2673,792],{},", or the current folder.",[316,2676,2677,2680],{},[334,2678,2679],{},"A config entry has no adapter",[334,2681,2682],{},"None. The command fails.",[316,2684,2685,2688],{},[334,2686,2687],{},"No config, or a found config that fails to load",[334,2689,2690,2692,2693,2695],{},[13,2691,2172],{},". A ",[13,2694,180],{}," file that fails to load fails the command.",[2075,2697,2698,2701],{},[2078,2699,2700],{},"An array config that repeats one adapter and input validates that pair once.",[2078,2702,2703],{},"A URL or git input is passed unchanged. A git input is fetched into a temporary folder, validated, and deleted.",[205,2705,1370,2707,1374],{"id":2706},"external-refs",[13,2708,1373],{},[10,2710,2711,2712,2714,2715,2717,2718,2721],{},"When your spec points at another file with a relative ",[13,2713,1373],{},", Kubb resolves it from the input file's folder. An object or inline input has no file, so its refs resolve from ",[13,2716,792],{},". An OpenAPI 3.2 ",[13,2719,2720],{},"$self"," changes the base.",[10,2723,2724],{},"Some runs refuse local files:",[310,2726,2727,2740],{},[313,2728,2729],{},[316,2730,2731,2734],{},[319,2732,2733],{},"Run",[319,2735,2736,2737,2739],{},"Local ",[13,2738,1373],{}," files it reads",[329,2741,2742,2750,2758,2766],{},[316,2743,2744,2747],{},[334,2745,2746],{},"A URL input",[334,2748,2749],{},"None, so a fetched spec cannot read your files",[316,2751,2752,2755],{},[334,2753,2754],{},"A Kubb Studio agent",[334,2756,2757],{},"Only files inside the project or the input's folder",[316,2759,2760,2763],{},[334,2761,2762],{},"A sandbox agent",[334,2764,2765],{},"None",[316,2767,2768,2771],{},[334,2769,2770],{},"A managed agent",[334,2772,2773],{},"Only files in the repository of a git input",[10,2775,2776,2777,2783],{},"To fix a refused file, move it into the project, start your agent with ",[190,2778,2780],{"href":2779},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio#permissions",[13,2781,2782],{},"--allow-file-refs",", or inline the schema.",[10,2785,2786,2787,2789,2790,2793,2794,2796,2797,2799],{},"A Kubb Studio agent also refuses a ",[13,2788,1373],{}," URL on a host that is not public, such as ",[13,2791,2792],{},"localhost",", a private network address, or a cloud metadata address, and a ",[13,2795,1373],{}," URL that redirects. ",[13,2798,2782],{}," lifts this limit too.",[10,2801,2802,2803,2805,2806,2808],{},"Every request for a URL input or a ",[13,2804,1373],{}," URL stops after 30 seconds. On a Kubb Studio agent, the host check before a ",[13,2807,1373],{}," request has its own 30-second limit.",[205,2810,1365],{"id":2811},"git-input",[10,2813,2814,2815,2817,2818,194],{},"For a spec in a git repository, write ",[13,2816,113],{}," as ",[13,2819,947],{},[2075,2821,2822,2828,2835],{},[2078,2823,2824,2827],{},[13,2825,2826],{},"\u003Cref>"," is a branch, a tag, or a full commit SHA on hosts that fetch by SHA, such as GitHub and GitLab.",[2078,2829,2830,2831,2834],{},"Leave out ",[13,2832,2833],{},"\u003Cref>:"," to use the default branch.",[2078,2836,2837,2838,2841,2842,952,2844,2846],{},"Kubb runs a shallow ",[13,2839,2840],{},"git fetch"," into a temporary folder. It needs ",[13,2843,951],{},[13,2845,955],{},". For a private repository, it uses your git credentials.",[10,2848,1361,2849,2853],{},[190,2850,2852],{"href":2851},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Frecipes#read-the-spec-from-a-git-repository","Read the spec from a git repository"," for a config.",{"title":2855,"searchDepth":2856,"depth":2856,"links":2857},"",5,[2858,2860,2865,2866,2888],{"id":173,"depth":2859,"text":174},2,{"id":197,"depth":2859,"text":198,"children":2861},[2862,2864],{"id":207,"depth":2863,"text":208},3,{"id":449,"depth":2863,"text":450},{"id":621,"depth":2859,"text":622},{"id":837,"depth":2859,"text":838,"children":2867},[2868,2869,2870,2880,2881,2882,2883,2884,2885,2886,2887],{"id":97,"depth":2863,"text":97},{"id":113,"depth":2863,"text":113},{"id":127,"depth":2863,"text":127,"children":2871},[2872,2874,2875,2876,2877,2878,2879],{"id":1401,"depth":2873,"text":668},4,{"id":1412,"depth":2873,"text":678},{"id":1452,"depth":2873,"text":690},{"id":1471,"depth":2873,"text":701},{"id":1489,"depth":2873,"text":1492},{"id":1652,"depth":2873,"text":712},{"id":1689,"depth":2873,"text":727},{"id":617,"depth":2863,"text":617},{"id":151,"depth":2863,"text":151},{"id":751,"depth":2863,"text":751},{"id":768,"depth":2863,"text":768},{"id":780,"depth":2863,"text":780},{"id":792,"depth":2863,"text":792},{"id":408,"depth":2863,"text":408},{"id":2392,"depth":2863,"text":2392},{"id":2465,"depth":2859,"text":2466,"children":2889},[2890,2896,2898],{"id":2469,"depth":2863,"text":193,"children":2891},[2892,2893,2894,2895],{"id":2530,"depth":2873,"text":2531},{"id":2560,"depth":2873,"text":2561},{"id":2603,"depth":2873,"text":2604},{"id":2639,"depth":2873,"text":2640},{"id":2706,"depth":2863,"text":2897},"External $ref files",{"id":2811,"depth":2863,"text":1365},"Reference for kubb.config.ts in Kubb v5. How Kubb finds and loads the config, the defaults defineConfig applies, and every top-level and output option.","md",{"layout":2902,"title":5,"description":2899,"outline":2903,"order":2904,"navigation":2905},"doc",[2859,2863],1,{"title":2906,"icon":2907},"Configuration","i-iconoir-settings",{"layout":2902,"outline":2909},[2859,2863],{"title":2906,"icon":2907},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration",{"title":5,"description":2899},{"loc":2911},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration.md","docs\u002F5.x\u002Freference\u002Fconfiguration","2q7Gvt9ZbZlnXiXwxfLfsb26fFTE3A5gf34TEg9e93E",1795727675024,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]