[{"data":1,"prerenderedAt":3210,"buildId":3211},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration":3},{"id":4,"title":5,"body":6,"description":3192,"extension":3193,"frontmatter":3194,"heading":3199,"meta":3201,"navigation":3203,"order":3197,"path":3204,"seo":3205,"sitemap":3206,"source":3207,"stem":3208,"__hash__":3209},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration.md","kubb.config.ts - Configuration reference",{"type":7,"value":8,"toc":3145},"minimark",[9,21,170,175,195,199,204,209,212,306,309,447,451,454,461,616,626,630,646,821,842,846,2675,2679,2683,2686,2694,2698,2743,2747,2758,2773,2777,2786,2816,2820,2852,2856,2866,2911,2919,2924,2929,2954,2960,3055,3062,3068,3091,3095,3100,3103,3111,3138],[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.",[10,455,456,457,460],{},"The array needs at least one config. Kubb stops with ",[13,458,459],{},"KUBB_INVALID_CONFIG"," when the export, or what its function returns, is not a config object or a non-empty array of them.",[22,462,464],{"language":24,"filename":15,"code":463,"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,465,466,57,480,57,494,57,496,57,507,57,558,57,611],{"class":29},[31,467,468,470,472,474,476,478],{"class":33,"style":34},[31,469,38],{"style":37},[31,471,42],{"style":41},[31,473,46],{"style":45},[31,475,49],{"style":41},[31,477,52],{"style":37},[31,479,56],{"style":55},[31,481,482,484,486,488,490,492],{"class":33,"style":34},[31,483,38],{"style":37},[31,485,42],{"style":41},[31,487,66],{"style":45},[31,489,49],{"style":41},[31,491,52],{"style":37},[31,493,73],{"style":55},[31,495],{"class":33,"style":34},[31,497,498,500,502,504],{"class":33,"style":34},[31,499,80],{"style":37},[31,501,83],{"style":37},[31,503,19],{"style":86},[31,505,506],{"style":41},"([",[31,508,509,512,514,516,518,520,522,524,526,528,530,532,534,536,538,541,543,545,547,549,551,553,556],{"class":33,"style":34},[31,510,511],{"style":41}," { ",[31,513,97],{"style":41},[31,515,100],{"style":37},[31,517,103],{"style":55},[31,519,286],{"style":37},[31,521,113],{"style":41},[31,523,100],{"style":37},[31,525,118],{"style":55},[31,527,286],{"style":37},[31,529,127],{"style":41},[31,531,100],{"style":37},[31,533,42],{"style":41},[31,535,134],{"style":41},[31,537,100],{"style":37},[31,539,540],{"style":55},"'.\u002Fsrc\u002Fgen\u002FpetStore' ",[31,542,142],{"style":41},[31,544,286],{"style":37},[31,546,151],{"style":41},[31,548,100],{"style":37},[31,550,156],{"style":41},[31,552,159],{"style":86},[31,554,555],{"style":41},"()] }",[31,557,106],{"style":37},[31,559,560,562,564,566,568,571,573,575,577,580,582,584,586,588,590,592,595,597,599,601,603,605,607,609],{"class":33,"style":34},[31,561,94],{"style":37},[31,563,42],{"style":41},[31,565,97],{"style":41},[31,567,100],{"style":37},[31,569,570],{"style":55},"'stripe'",[31,572,286],{"style":37},[31,574,113],{"style":41},[31,576,100],{"style":37},[31,578,579],{"style":55},"'.\u002Fstripe.yaml'",[31,581,286],{"style":37},[31,583,127],{"style":41},[31,585,100],{"style":37},[31,587,42],{"style":41},[31,589,134],{"style":41},[31,591,100],{"style":37},[31,593,594],{"style":55},"'.\u002Fsrc\u002Fgen\u002Fstripe' ",[31,596,142],{"style":41},[31,598,286],{"style":37},[31,600,151],{"style":41},[31,602,100],{"style":37},[31,604,156],{"style":41},[31,606,159],{"style":86},[31,608,555],{"style":41},[31,610,106],{"style":37},[31,612,613],{"class":33,"style":34},[31,614,615],{"style":41},"])",[10,617,618,619,625],{},"When the specs define the same schemas, set ",[190,620,622],{"href":621},"#shared",[13,623,624],{},"shared"," to generate those once.",[171,627,629],{"id":628},"defaults","Defaults",[10,631,632,634,635,638,639,634,642,645],{},[13,633,19],{}," from ",[13,636,637],{},"kubb\u002Fconfig"," and ",[13,640,641],{},"createKubb",[13,643,644],{},"kubb"," fill in these defaults for every option you leave out.",[310,647,648,658],{},[313,649,650],{},[316,651,652,655],{},[319,653,654],{},"Option",[319,656,657],{},"Default",[329,659,660,669,679,691,702,713,728,740,752,769,781,793,810],{},[316,661,662,666],{},[334,663,664],{},[13,665,113],{},[334,667,668],{},"None. Required with an adapter.",[316,670,671,676],{},[334,672,673],{},[13,674,675],{},"output.path",[334,677,678],{},"None. Required.",[316,680,681,686],{},[334,682,683],{},[13,684,685],{},"output.clean",[334,687,688],{},[13,689,690],{},"false",[316,692,693,698],{},[334,694,695],{},[13,696,697],{},"output.format",[334,699,700],{},[13,701,690],{},[316,703,704,709],{},[334,705,706],{},[13,707,708],{},"output.lint",[334,710,711],{},[13,712,690],{},[316,714,715,720],{},[334,716,717],{},[13,718,719],{},"output.barrel",[334,721,722,724,725],{},[13,723,690],{},", so no root ",[13,726,727],{},"index.ts",[316,729,730,735],{},[334,731,732],{},[13,733,734],{},"output.defaultBanner",[334,736,737],{},[13,738,739],{},"'simple'",[316,741,742,746],{},[334,743,744],{},[13,745,151],{},[334,747,748,751],{},[13,749,750],{},"pluginBarrel()",", appended when missing",[316,753,754,759],{},[334,755,756],{},[13,757,758],{},"adapter",[334,760,761,764,765],{},[13,762,763],{},"adapterOas()",", the bundled ",[190,766,768],{"href":767},"\u002Fextensions\u002Fkubb-labs\u002Fadapter-oas","OpenAPI adapter",[316,770,771,776],{},[334,772,773],{},[13,774,775],{},"parsers",[334,777,778],{},[13,779,780],{},"[parserTs(), parserTsx(), parserMd()]",[316,782,783,788],{},[334,784,785],{},[13,786,787],{},"storage",[334,789,790],{},[13,791,792],{},"fsStorage()",[316,794,795,800],{},[334,796,797],{},[13,798,799],{},"root",[334,801,802,803,806,807],{},"The config file's folder, or the folder above ",[13,804,805],{},".config\u002F"," or ",[13,808,809],{},"configs\u002F",[316,811,812,816],{},[334,813,814],{},[13,815,408],{},[334,817,818],{},[13,819,820],{},"[cli, json, file, html]",[10,822,823,824,826,827,829,830,833,834,634,836,839,840,194],{},"When you call ",[13,825,641],{}," yourself, ",[13,828,799],{}," defaults to ",[13,831,832],{},"process.cwd()",". ",[13,835,641],{},[13,837,838],{},"@kubb\u002Fcore"," applies fewer defaults. The build tool integrations run fewer reporters. See ",[190,841,193],{"href":192},[171,843,845],{"id":844},"top-level-options","Top-level options",[847,848,849,853,864,868,1382,1386,1405,1411,1417,1422,1457,1462,1476,1481,1494,1500,1675,1680,1712,1717,1807,1811,2147,2151,2173,2177,2205,2209,2340,2344,2362,2366,2387,2391,2415,2420,2484,2489],"field-group",{},[205,850,851],{"id":97},[13,852,97],{},[854,855,857,858,861,862,194],"field",{"type":856},"string","The run heading the CLI prints before the input, such as ",[13,859,860],{},"petStore .\u002FpetStore.yaml",". Unnamed configs show as ",[13,863,644],{},[205,865,866],{"id":113},[13,867,113],{},[854,869,871,877,949,963,1366],{"type":870},"string | Record\u003Cstring, unknown>",[10,872,873,874,876],{},"Where Kubb reads your spec. Required when an adapter is set, as ",[13,875,19],{}," does by default. Kubb detects the kind:",[310,878,879,888],{},[313,880,881],{},[316,882,883,885],{},[319,884,327],{},[319,886,887],{},"Read as",[329,889,890,898,918,928,936],{},[316,891,892,895],{},[334,893,894],{},"An object",[334,896,897],{},"A parsed spec",[316,899,900,915],{},[334,901,902,903,806,906,908,909,806,912],{},"A string starting with ",[13,904,905],{},"{",[13,907,156],{},", spanning lines, or opening with ",[13,910,911],{},"openapi:",[13,913,914],{},"swagger:",[334,916,917],{},"Inline JSON or YAML",[316,919,920,925],{},[334,921,902,922],{},[13,923,924],{},"git+",[334,926,927],{},"A file in a git repository",[316,929,930,933],{},[334,931,932],{},"A URL string",[334,934,935],{},"A remote spec",[316,937,938,941],{},[334,939,940],{},"Any other string",[334,942,943,944],{},"A file path, relative to ",[190,945,947],{"href":946},"#root",[13,948,799],{},[10,950,951,952,955,956,959,960,194],{},"A git input is ",[13,953,954],{},"git+\u003Crepo>#\u003Cref>:\u003Cpath>"," and needs ",[13,957,958],{},"git"," on the ",[13,961,962],{},"PATH",[964,965,966,1034,1103,1172,1270],"code-group",{},[22,967,970],{"language":24,"filename":968,"code":969,"class":26},"File path","import { defineConfig } from 'kubb\u002Fconfig'\n\nexport default defineConfig({\n input: '.\u002FpetStore.yaml',\n output: { path: '.\u002Fsrc\u002Fgen' },\n})",[13,971,972,57,986,57,988,57,998,57,1010,57,1030],{"class":29},[31,973,974,976,978,980,982,984],{"class":33,"style":34},[31,975,38],{"style":37},[31,977,42],{"style":41},[31,979,46],{"style":45},[31,981,49],{"style":41},[31,983,52],{"style":37},[31,985,56],{"style":55},[31,987],{"class":33,"style":34},[31,989,990,992,994,996],{"class":33,"style":34},[31,991,80],{"style":37},[31,993,83],{"style":37},[31,995,19],{"style":86},[31,997,89],{"style":41},[31,999,1000,1002,1004,1006,1008],{"class":33,"style":34},[31,1001,94],{"style":41},[31,1003,113],{"style":41},[31,1005,100],{"style":37},[31,1007,118],{"style":55},[31,1009,106],{"style":37},[31,1011,1012,1014,1016,1018,1020,1022,1024,1026,1028],{"class":33,"style":34},[31,1013,94],{"style":37},[31,1015,127],{"style":41},[31,1017,100],{"style":37},[31,1019,42],{"style":41},[31,1021,134],{"style":41},[31,1023,100],{"style":37},[31,1025,139],{"style":55},[31,1027,142],{"style":41},[31,1029,106],{"style":37},[31,1031,1032],{"class":33,"style":34},[31,1033,169],{"style":41},[22,1035,1038],{"language":24,"filename":1036,"code":1037,"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,1039,1040,57,1054,57,1056,57,1066,57,1079,57,1099],{"class":29},[31,1041,1042,1044,1046,1048,1050,1052],{"class":33,"style":34},[31,1043,38],{"style":37},[31,1045,42],{"style":41},[31,1047,46],{"style":45},[31,1049,49],{"style":41},[31,1051,52],{"style":37},[31,1053,56],{"style":55},[31,1055],{"class":33,"style":34},[31,1057,1058,1060,1062,1064],{"class":33,"style":34},[31,1059,80],{"style":37},[31,1061,83],{"style":37},[31,1063,19],{"style":86},[31,1065,89],{"style":41},[31,1067,1068,1070,1072,1074,1077],{"class":33,"style":34},[31,1069,94],{"style":41},[31,1071,113],{"style":41},[31,1073,100],{"style":37},[31,1075,1076],{"style":55},"'https:\u002F\u002Fpetstore3.swagger.io\u002Fapi\u002Fv3\u002Fopenapi.json'",[31,1078,106],{"style":37},[31,1080,1081,1083,1085,1087,1089,1091,1093,1095,1097],{"class":33,"style":34},[31,1082,94],{"style":37},[31,1084,127],{"style":41},[31,1086,100],{"style":37},[31,1088,42],{"style":41},[31,1090,134],{"style":41},[31,1092,100],{"style":37},[31,1094,139],{"style":55},[31,1096,142],{"style":41},[31,1098,106],{"style":37},[31,1100,1101],{"class":33,"style":34},[31,1102,169],{"style":41},[22,1104,1107],{"language":24,"filename":1105,"code":1106,"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,1108,1109,57,1123,57,1125,57,1135,57,1148,57,1168],{"class":29},[31,1110,1111,1113,1115,1117,1119,1121],{"class":33,"style":34},[31,1112,38],{"style":37},[31,1114,42],{"style":41},[31,1116,46],{"style":45},[31,1118,49],{"style":41},[31,1120,52],{"style":37},[31,1122,56],{"style":55},[31,1124],{"class":33,"style":34},[31,1126,1127,1129,1131,1133],{"class":33,"style":34},[31,1128,80],{"style":37},[31,1130,83],{"style":37},[31,1132,19],{"style":86},[31,1134,89],{"style":41},[31,1136,1137,1139,1141,1143,1146],{"class":33,"style":34},[31,1138,94],{"style":41},[31,1140,113],{"style":41},[31,1142,100],{"style":37},[31,1144,1145],{"style":55},"'git+https:\u002F\u002Fgithub.com\u002Forg\u002Fapi.git#v2:specs\u002Fopenapi.yaml'",[31,1147,106],{"style":37},[31,1149,1150,1152,1154,1156,1158,1160,1162,1164,1166],{"class":33,"style":34},[31,1151,94],{"style":37},[31,1153,127],{"style":41},[31,1155,100],{"style":37},[31,1157,42],{"style":41},[31,1159,134],{"style":41},[31,1161,100],{"style":37},[31,1163,139],{"style":55},[31,1165,142],{"style":41},[31,1167,106],{"style":37},[31,1169,1170],{"class":33,"style":34},[31,1171,169],{"style":41},[22,1173,1176],{"language":24,"filename":1174,"code":1175,"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,1177,1178,57,1192,57,1194,57,1204,57,1215,57,1220,57,1225,57,1230,57,1235,57,1240,57,1246,57,1266],{"class":29},[31,1179,1180,1182,1184,1186,1188,1190],{"class":33,"style":34},[31,1181,38],{"style":37},[31,1183,42],{"style":41},[31,1185,46],{"style":45},[31,1187,49],{"style":41},[31,1189,52],{"style":37},[31,1191,56],{"style":55},[31,1193],{"class":33,"style":34},[31,1195,1196,1198,1200,1202],{"class":33,"style":34},[31,1197,80],{"style":37},[31,1199,83],{"style":37},[31,1201,19],{"style":86},[31,1203,89],{"style":41},[31,1205,1206,1208,1210,1212],{"class":33,"style":34},[31,1207,94],{"style":41},[31,1209,113],{"style":41},[31,1211,100],{"style":37},[31,1213,1214],{"style":55},"`",[31,1216,1217],{"class":33,"style":34},[31,1218,1219],{"style":55},"openapi: 3.1.0",[31,1221,1222],{"class":33,"style":34},[31,1223,1224],{"style":55},"info:",[31,1226,1227],{"class":33,"style":34},[31,1228,1229],{"style":55}," title: Pet Store",[31,1231,1232],{"class":33,"style":34},[31,1233,1234],{"style":55}," version: 1.0.0",[31,1236,1237],{"class":33,"style":34},[31,1238,1239],{"style":55},"paths: {}",[31,1241,1242,1244],{"class":33,"style":34},[31,1243,1214],{"style":55},[31,1245,106],{"style":37},[31,1247,1248,1250,1252,1254,1256,1258,1260,1262,1264],{"class":33,"style":34},[31,1249,94],{"style":37},[31,1251,127],{"style":41},[31,1253,100],{"style":37},[31,1255,42],{"style":41},[31,1257,134],{"style":41},[31,1259,100],{"style":37},[31,1261,139],{"style":55},[31,1263,142],{"style":41},[31,1265,106],{"style":37},[31,1267,1268],{"class":33,"style":34},[31,1269,169],{"style":41},[22,1271,1274],{"language":24,"filename":1272,"code":1273,"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,1275,1276,57,1290,57,1317,57,1319,57,1329,57,1342,57,1362],{"class":29},[31,1277,1278,1280,1282,1284,1286,1288],{"class":33,"style":34},[31,1279,38],{"style":37},[31,1281,42],{"style":41},[31,1283,46],{"style":45},[31,1285,49],{"style":41},[31,1287,52],{"style":37},[31,1289,56],{"style":55},[31,1291,1292,1294,1297,1299,1302,1305,1307,1310,1312,1315],{"class":33,"style":34},[31,1293,38],{"style":37},[31,1295,1296],{"style":45},"spec ",[31,1298,52],{"style":37},[31,1300,1301],{"style":55},"'.\u002FpetStore.json' ",[31,1303,1304],{"style":37},"with ",[31,1306,42],{"style":41},[31,1308,1309],{"style":41},"type",[31,1311,100],{"style":37},[31,1313,1314],{"style":55},"'json' ",[31,1316,142],{"style":41},[31,1318],{"class":33,"style":34},[31,1320,1321,1323,1325,1327],{"class":33,"style":34},[31,1322,80],{"style":37},[31,1324,83],{"style":37},[31,1326,19],{"style":86},[31,1328,89],{"style":41},[31,1330,1331,1333,1335,1337,1340],{"class":33,"style":34},[31,1332,94],{"style":41},[31,1334,113],{"style":41},[31,1336,100],{"style":37},[31,1338,1339],{"style":45},"spec",[31,1341,106],{"style":37},[31,1343,1344,1346,1348,1350,1352,1354,1356,1358,1360],{"class":33,"style":34},[31,1345,94],{"style":37},[31,1347,127],{"style":41},[31,1349,100],{"style":37},[31,1351,42],{"style":41},[31,1353,134],{"style":41},[31,1355,100],{"style":37},[31,1357,139],{"style":55},[31,1359,142],{"style":41},[31,1361,106],{"style":37},[31,1363,1364],{"class":33,"style":34},[31,1365,169],{"style":41},[10,1367,1368,1369,1373,1374,194],{},"See ",[190,1370,1372],{"href":1371},"#git-input","Git input"," for refs and credentials, and ",[190,1375,1377,1378,1381],{"href":1376},"#external-refs","External ",[13,1379,1380],{},"$ref"," files",[205,1383,1384],{"id":127},[13,1385,127],{},[10,1387,1388,1389,286,1392,1395,1396,1399,1400,1404],{},"Where and how Kubb writes files. ",[13,1390,1391],{},"output.mode",[13,1393,1394],{},"output.banner",", and ",[13,1397,1398],{},"output.footer"," are ",[190,1401,1403],{"href":1402},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output","plugin options"," only.",[1406,1407,1409],"h4",{"id":1408},"outputpath",[13,1410,675],{},[854,1412,1413,1414,1416],{"type":856,":required":375},"The folder for generated files, absolute or relative to ",[13,1415,799],{},". Plugin output paths resolve inside it.",[1406,1418,1420],{"id":1419},"outputclean",[13,1421,685],{},[854,1423,1425,1438],{"type":1424},"boolean",[10,1426,1427,1428,1430,1431,1435,1436,194],{},"Remove every file in ",[13,1429,675],{}," before generating, and in the ",[190,1432,1433],{"href":621},[13,1434,624],{}," directory when one is set. Default: ",[13,1437,690],{},[1439,1440,1442,1443,1446,1447,1453,1454,1456],"blockquote",{"as":1441},"warning","Use ",[13,1444,1445],{},"clean: true"," only on a generated-code folder. Kubb stops with ",[190,1448,1450],{"href":1449},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-clean-root",[13,1451,1452],{},"KUBB_CLEAN_ROOT"," when ",[13,1455,675],{}," is the project root or a parent of it.",[1406,1458,1460],{"id":1459},"outputformat",[13,1461,697],{},[854,1463,1465,1470],{"type":1464},"'auto' | 'prettier' | 'biome' | 'oxfmt' | false",[10,1466,1467,1468,194],{},"The formatter for the generated files. Default: ",[13,1469,690],{},[10,1471,1472,1475],{},[13,1473,1474],{},"'auto'"," runs the first installed of oxfmt, Biome, and Prettier. A tool name forces that tool, which reads its own config.",[1406,1477,1479],{"id":1478},"outputlint",[13,1480,708],{},[854,1482,1484,1489],{"type":1483},"'auto' | 'eslint' | 'biome' | 'oxlint' | false",[10,1485,1486,1487,194],{},"The linter for the generated files. Default: ",[13,1488,690],{},[10,1490,1491,1493],{},[13,1492,1474],{}," runs the first installed of oxlint, Biome, and ESLint. A tool name forces that tool.",[1406,1495,1497],{"id":1496},"outputpostgenerate",[13,1498,1499],{},"output.postGenerate",[854,1501,1503,1513,1632,1650],{"type":1502},"Array\u003Cstring | { name?: string; command: string }>",[10,1504,1505,1506,1508,1509,1512],{},"Commands to run in order from ",[13,1507,799],{}," after formatting and linting, such as a type check. ",[13,1510,1511],{},"{ name, command }"," labels a step in the CLI output.",[22,1514,1516],{"language":24,"filename":15,"code":1515,"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,1517,1518,57,1532,57,1534,57,1544,57,1556,57,1566,57,1579,57,1620,57,1628],{"class":29},[31,1519,1520,1522,1524,1526,1528,1530],{"class":33,"style":34},[31,1521,38],{"style":37},[31,1523,42],{"style":41},[31,1525,46],{"style":45},[31,1527,49],{"style":41},[31,1529,52],{"style":37},[31,1531,56],{"style":55},[31,1533],{"class":33,"style":34},[31,1535,1536,1538,1540,1542],{"class":33,"style":34},[31,1537,80],{"style":37},[31,1539,83],{"style":37},[31,1541,19],{"style":86},[31,1543,89],{"style":41},[31,1545,1546,1548,1550,1552,1554],{"class":33,"style":34},[31,1547,94],{"style":41},[31,1549,113],{"style":41},[31,1551,100],{"style":37},[31,1553,118],{"style":55},[31,1555,106],{"style":37},[31,1557,1558,1560,1562,1564],{"class":33,"style":34},[31,1559,94],{"style":37},[31,1561,127],{"style":41},[31,1563,100],{"style":37},[31,1565,905],{"style":41},[31,1567,1568,1571,1573,1575,1577],{"class":33,"style":34},[31,1569,1570],{"style":41}," ",[31,1572,134],{"style":41},[31,1574,100],{"style":37},[31,1576,283],{"style":55},[31,1578,106],{"style":37},[31,1580,1581,1583,1586,1588,1591,1593,1595,1598,1600,1603,1605,1608,1610,1612,1615,1618],{"class":33,"style":34},[31,1582,1570],{"style":37},[31,1584,1585],{"style":41},"postGenerate",[31,1587,100],{"style":37},[31,1589,1590],{"style":41},"[{ ",[31,1592,97],{"style":41},[31,1594,100],{"style":37},[31,1596,1597],{"style":55},"'types'",[31,1599,286],{"style":37},[31,1601,1602],{"style":41},"command",[31,1604,100],{"style":37},[31,1606,1607],{"style":55},"'npm run typecheck' ",[31,1609,142],{"style":41},[31,1611,286],{"style":37},[31,1613,1614],{"style":55},"'biome check --write .\u002Fsrc\u002Fgen'",[31,1616,1617],{"style":41},"]",[31,1619,106],{"style":37},[31,1621,1622,1624,1626],{"class":33,"style":34},[31,1623,94],{"style":37},[31,1625,142],{"style":41},[31,1627,106],{"style":37},[31,1629,1630],{"class":33,"style":34},[31,1631,169],{"style":41},[10,1633,1634,1635,1638,1639,1642,1643,1646,1647,194],{},"Kubb runs each command without a shell. Quotes group an argument, as in ",[13,1636,1637],{},"--config=\"my config.json\"",", but ",[13,1640,1641],{},"&&",", pipes, ",[13,1644,1645],{},"VAR=1 cmd",", and globs have no special meaning. To chain steps, put them in a package script and run ",[13,1648,1649],{},"npm run \u003Cscript>",[10,1651,1652,1653,1655,1656,286,1662,1668,1669,194],{},"Format, lint, and ",[13,1654,1585],{}," run only after a build without errors. A failing step reports ",[190,1657,1659],{"href":1658},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-format-failed",[13,1660,1661],{},"KUBB_FORMAT_FAILED",[190,1663,1665],{"href":1664},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-lint-failed",[13,1666,1667],{},"KUBB_LINT_FAILED",", or ",[190,1670,1672],{"href":1671},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-post-generate-failed",[13,1673,1674],{},"KUBB_POST_GENERATE_FAILED",[1406,1676,1678],{"id":1677},"outputbarrel",[13,1679,719],{},[854,1681,1683,1684,1686,1687,100,1689,806,1692,1695,1696,1701,1702,1704,1705,1707,1708,194],{"type":1682},"{ type: 'all' | 'named' } | false","The root ",[13,1685,727],{}," at ",[13,1688,675],{},[13,1690,1691],{},"{ type: 'named' }",[13,1693,1694],{},"{ type: 'all' }",", as on the plugin-level ",[190,1697,1699],{"href":1698},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output-barrel",[13,1700,719],{},". Default: ",[13,1703,690],{},". A plugin without its own ",[13,1706,719],{}," inherits it. See ",[190,1709,1711],{"href":1710},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Frecipes#barrel-files","Add barrel files",[1406,1713,1715],{"id":1714},"outputdefaultbanner",[13,1716,734],{},[854,1718,1720,1732],{"type":1719},"'simple' | 'full' | false",[10,1721,1722,1723,1725,1726,1731],{},"The notice Kubb writes at the top of each generated file. Default: ",[13,1724,739],{},". A plugin's ",[190,1727,1729],{"href":1728},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output-banner",[13,1730,1394],{}," replaces it.",[964,1733,1734,1761,1798],{},[22,1735,1738],{"language":24,"filename":1736,"code":1737,"class":26},"simple","\u002F**\n * Generated by Kubb (https:\u002F\u002Fkubb.dev\u002F).\n * Do not edit manually.\n *\u002F",[13,1739,1740,57,1746,57,1751,57,1756],{"class":29},[31,1741,1742],{"class":33,"style":34},[31,1743,1745],{"style":1744},"color:#6a737d;--hls-dark:#6a737d","\u002F**",[31,1747,1748],{"class":33,"style":34},[31,1749,1750],{"style":1744}," * Generated by Kubb (https:\u002F\u002Fkubb.dev\u002F).",[31,1752,1753],{"class":33,"style":34},[31,1754,1755],{"style":1744}," * Do not edit manually.",[31,1757,1758],{"class":33,"style":34},[31,1759,1760],{"style":1744}," *\u002F",[22,1762,1765],{"language":24,"filename":1763,"code":1764,"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,1766,1767,57,1771,57,1775,57,1779,57,1784,57,1789,57,1794],{"class":29},[31,1768,1769],{"class":33,"style":34},[31,1770,1745],{"style":1744},[31,1772,1773],{"class":33,"style":34},[31,1774,1750],{"style":1744},[31,1776,1777],{"class":33,"style":34},[31,1778,1755],{"style":1744},[31,1780,1781],{"class":33,"style":34},[31,1782,1783],{"style":1744}," * Source: petStore.yaml",[31,1785,1786],{"class":33,"style":34},[31,1787,1788],{"style":1744}," * Title: Pet Store",[31,1790,1791],{"class":33,"style":34},[31,1792,1793],{"style":1744}," * OpenAPI spec version: 1.0.0",[31,1795,1796],{"class":33,"style":34},[31,1797,1760],{"style":1744},[22,1799,1801],{"language":24,"filename":690,"code":1800,"class":26},"\u002F\u002F no banner",[13,1802,1803],{"class":29},[31,1804,1805],{"class":33,"style":34},[31,1806,1800],{"style":1744},[205,1808,1809],{"id":624},[13,1810,624],{},[854,1812,1814,1830,2077,2099],{"type":1813},"{ path: string }",[10,1815,1816,1817,1821,1822,1824,1825,1829],{},"Directory for schemas that several configs of an ",[190,1818,1820],{"href":1819},"#multiple-configurations-array","array"," define identically. Kubb writes each one once under ",[13,1823,134],{},", resolved against ",[190,1826,1827],{"href":946},[13,1828,799],{},", and every other generated file imports it from there. Give every config the same value:",[22,1831,1834],{"language":24,"meta":1832,"code":1833,"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,1835,1836,57,1850,57,1864,57,1880,57,1882,57,1904,57,1906,57,1916,57,1921,57,1934,57,1955,57,1963,57,1987,57,1995,57,2001,57,2014,57,2035,57,2043,57,2065,57,2073],{"class":29},[31,1837,1838,1840,1842,1844,1846,1848],{"class":33,"style":34},[31,1839,38],{"style":37},[31,1841,42],{"style":41},[31,1843,46],{"style":45},[31,1845,49],{"style":41},[31,1847,52],{"style":37},[31,1849,56],{"style":55},[31,1851,1852,1854,1856,1858,1860,1862],{"class":33,"style":34},[31,1853,38],{"style":37},[31,1855,42],{"style":41},[31,1857,66],{"style":45},[31,1859,49],{"style":41},[31,1861,52],{"style":37},[31,1863,73],{"style":55},[31,1865,1866,1868,1870,1873,1875,1877],{"class":33,"style":34},[31,1867,38],{"style":37},[31,1869,42],{"style":41},[31,1871,1872],{"style":45},"pluginZod ",[31,1874,49],{"style":41},[31,1876,52],{"style":37},[31,1878,1879],{"style":55},"'@kubb\u002Fplugin-zod'",[31,1881],{"class":33,"style":34},[31,1883,1884,1887,1890,1893,1895,1897,1899,1902],{"class":33,"style":34},[31,1885,1886],{"style":37},"const ",[31,1888,1889],{"style":45},"shared ",[31,1891,1892],{"style":37},"= ",[31,1894,42],{"style":41},[31,1896,134],{"style":41},[31,1898,100],{"style":37},[31,1900,1901],{"style":55},"'.\u002Fsrc\u002Fgen\u002Fcommon' ",[31,1903,142],{"style":41},[31,1905],{"class":33,"style":34},[31,1907,1908,1910,1912,1914],{"class":33,"style":34},[31,1909,80],{"style":37},[31,1911,83],{"style":37},[31,1913,19],{"style":86},[31,1915,506],{"style":41},[31,1917,1918],{"class":33,"style":34},[31,1919,1920],{"style":41}," {",[31,1922,1923,1925,1927,1929,1932],{"class":33,"style":34},[31,1924,1570],{"style":41},[31,1926,113],{"style":41},[31,1928,100],{"style":37},[31,1930,1931],{"style":55},"'.\u002Fanimals.json'",[31,1933,106],{"style":37},[31,1935,1936,1938,1940,1942,1944,1946,1948,1951,1953],{"class":33,"style":34},[31,1937,1570],{"style":37},[31,1939,127],{"style":41},[31,1941,100],{"style":37},[31,1943,42],{"style":41},[31,1945,134],{"style":41},[31,1947,100],{"style":37},[31,1949,1950],{"style":55},"'.\u002Fsrc\u002Fgen\u002Fanimals' ",[31,1952,142],{"style":41},[31,1954,106],{"style":37},[31,1956,1957,1959,1961],{"class":33,"style":34},[31,1958,1570],{"style":37},[31,1960,624],{"style":45},[31,1962,106],{"style":37},[31,1964,1965,1967,1969,1971,1973,1975,1978,1980,1983,1985],{"class":33,"style":34},[31,1966,1570],{"style":37},[31,1968,151],{"style":41},[31,1970,100],{"style":37},[31,1972,156],{"style":41},[31,1974,159],{"style":86},[31,1976,1977],{"style":41},"()",[31,1979,286],{"style":37},[31,1981,1982],{"style":86},"pluginZod",[31,1984,162],{"style":41},[31,1986,106],{"style":37},[31,1988,1989,1991,1993],{"class":33,"style":34},[31,1990,94],{"style":37},[31,1992,142],{"style":41},[31,1994,106],{"style":37},[31,1996,1997,1999],{"class":33,"style":34},[31,1998,94],{"style":37},[31,2000,905],{"style":41},[31,2002,2003,2005,2007,2009,2012],{"class":33,"style":34},[31,2004,1570],{"style":41},[31,2006,113],{"style":41},[31,2008,100],{"style":37},[31,2010,2011],{"style":55},"'.\u002Ffruits.json'",[31,2013,106],{"style":37},[31,2015,2016,2018,2020,2022,2024,2026,2028,2031,2033],{"class":33,"style":34},[31,2017,1570],{"style":37},[31,2019,127],{"style":41},[31,2021,100],{"style":37},[31,2023,42],{"style":41},[31,2025,134],{"style":41},[31,2027,100],{"style":37},[31,2029,2030],{"style":55},"'.\u002Fsrc\u002Fgen\u002Ffruits' ",[31,2032,142],{"style":41},[31,2034,106],{"style":37},[31,2036,2037,2039,2041],{"class":33,"style":34},[31,2038,1570],{"style":37},[31,2040,624],{"style":45},[31,2042,106],{"style":37},[31,2044,2045,2047,2049,2051,2053,2055,2057,2059,2061,2063],{"class":33,"style":34},[31,2046,1570],{"style":37},[31,2048,151],{"style":41},[31,2050,100],{"style":37},[31,2052,156],{"style":41},[31,2054,159],{"style":86},[31,2056,1977],{"style":41},[31,2058,286],{"style":37},[31,2060,1982],{"style":86},[31,2062,162],{"style":41},[31,2064,106],{"style":37},[31,2066,2067,2069,2071],{"class":33,"style":34},[31,2068,94],{"style":37},[31,2070,142],{"style":41},[31,2072,106],{"style":37},[31,2074,2075],{"class":33,"style":34},[31,2076,615],{"style":41},[10,2078,2079,2080,638,2083,2086,2087,2090,2091,2094,2095,2098],{},"When ",[13,2081,2082],{},"animals.json",[13,2084,2085],{},"fruits.json"," both define ",[13,2088,2089],{},"Name",", Kubb writes ",[13,2092,2093],{},"src\u002Fgen\u002Fcommon\u002Ftypes\u002FName.ts"," once, and ",[13,2096,2097],{},"src\u002Fgen\u002Fanimals\u002Ftypes\u002FAnimal.ts"," imports it.",[2100,2101,2102,2106,2117,2120,2138],"ul",{},[2103,2104,2105],"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.",[2103,2107,2108,2109,2112,2113,2116],{},"A plugin with ",[13,2110,2111],{},"output.mode: 'file'"," or a custom ",[13,2114,2115],{},"file.path"," shares nothing. Neither does a sandbox or managed Studio agent.",[2103,2118,2119],{},"Barrels re-export the shared schemas a config defines. The shared directory gets no barrels.",[2103,2121,2122,286,2127,638,2132,2137],{},[190,2123,2125],{"href":2124},"#outputformat",[13,2126,697],{},[190,2128,2130],{"href":2129},"#outputlint",[13,2131,708],{},[190,2133,2135],{"href":2134},"#outputclean",[13,2136,685],{}," apply to the shared directory too.",[2103,2139,2140,2141,2143,2144,2146],{},"Keep ",[13,2142,134],{}," outside every ",[13,2145,675],{},", and give the configs the same plugin options. Kubb warns when two configs write a shared file differently, and the last one wins.",[205,2148,2149],{"id":151},[13,2150,151],{},[854,2152,2154,2155,2158,2159,2161,2162,2168,2169,194],{"type":2153},"Array\u003CPlugin>","The plugins to run, in dependency order. Default: ",[13,2156,2157],{},"[]",", with ",[13,2160,750],{}," appended when missing. A missing required dependency fails with ",[190,2163,2165],{"href":2164},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-missing-dependency",[13,2166,2167],{},"KUBB_MISSING_DEPENDENCY",". See ",[190,2170,2172],{"href":2171},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options","Shared plugin options",[205,2174,2175],{"id":758},[13,2176,758],{},[854,2178,2180,2188],{"type":2179},"Adapter",[10,2181,2182,2183,2185,2186,194],{},"Turns your input into Kubb's AST. Default: ",[13,2184,763],{},", bundled with ",[13,2187,644],{},[10,2189,2190,2191,2194,2195,833,2198,2200,2201,194],{},"To pass options, such as ",[13,2192,2193],{},"adapterOas({ validate: false })",", install and import ",[13,2196,2197],{},"@kubb\u002Fadapter-oas",[13,2199,644],{}," does not re-export it. See the ",[190,2202,2204],{"href":2203},"\u002Fextensions\u002Fkubb-labs\u002Fadapter-oas\u002Foptions","adapter options",[205,2206,2207],{"id":775},[13,2208,775],{},[854,2210,2212,2229],{"type":2211},"Array\u003CParser>",[10,2213,2214,2215,1701,2218,2185,2220,2222,2223,194],{},"Turn file nodes into source text, each for the extensions in its ",[13,2216,2217],{},"extNames",[13,2219,780],{},[13,2221,644],{},". A list you pass replaces the default. See ",[190,2224,2226],{"href":2225},"\u002Fextensions\u002Fkubb-labs\u002Fparser-ts",[13,2227,2228],{},"@kubb\u002Fparser-ts",[22,2230,2232],{"language":24,"filename":15,"code":2231,"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,2233,2234,57,2248,57,2269,57,2271,57,2281,57,2293,57,2313,57,2336],{"class":29},[31,2235,2236,2238,2240,2242,2244,2246],{"class":33,"style":34},[31,2237,38],{"style":37},[31,2239,42],{"style":41},[31,2241,46],{"style":45},[31,2243,49],{"style":41},[31,2245,52],{"style":37},[31,2247,56],{"style":55},[31,2249,2250,2252,2254,2257,2259,2262,2264,2266],{"class":33,"style":34},[31,2251,38],{"style":37},[31,2253,42],{"style":41},[31,2255,2256],{"style":45},"parserTs",[31,2258,286],{"style":37},[31,2260,2261],{"style":45},"parserTsx ",[31,2263,49],{"style":41},[31,2265,52],{"style":37},[31,2267,2268],{"style":55},"'@kubb\u002Fparser-ts'",[31,2270],{"class":33,"style":34},[31,2272,2273,2275,2277,2279],{"class":33,"style":34},[31,2274,80],{"style":37},[31,2276,83],{"style":37},[31,2278,19],{"style":86},[31,2280,89],{"style":41},[31,2282,2283,2285,2287,2289,2291],{"class":33,"style":34},[31,2284,94],{"style":41},[31,2286,113],{"style":41},[31,2288,100],{"style":37},[31,2290,118],{"style":55},[31,2292,106],{"style":37},[31,2294,2295,2297,2299,2301,2303,2305,2307,2309,2311],{"class":33,"style":34},[31,2296,94],{"style":37},[31,2298,127],{"style":41},[31,2300,100],{"style":37},[31,2302,42],{"style":41},[31,2304,134],{"style":41},[31,2306,100],{"style":37},[31,2308,139],{"style":55},[31,2310,142],{"style":41},[31,2312,106],{"style":37},[31,2314,2315,2317,2319,2321,2323,2325,2327,2329,2332,2334],{"class":33,"style":34},[31,2316,94],{"style":37},[31,2318,775],{"style":41},[31,2320,100],{"style":37},[31,2322,156],{"style":41},[31,2324,2256],{"style":86},[31,2326,1977],{"style":41},[31,2328,286],{"style":37},[31,2330,2331],{"style":86},"parserTsx",[31,2333,162],{"style":41},[31,2335,106],{"style":37},[31,2337,2338],{"class":33,"style":34},[31,2339,169],{"style":41},[205,2341,2342],{"id":787},[13,2343,787],{},[854,2345,2347,2348,2350,2351,634,2354,2357,2358,2361],{"type":2346},"Storage","Where generated files go. Default: ",[13,2349,792],{},", which writes to disk. ",[13,2352,2353],{},"memoryStorage()",[13,2355,2356],{},"kubb\u002Fkit"," keeps them in memory. See ",[190,2359,2346],{"href":2360},"\u002Fdocs\u002F5.x\u002Fintroduction\u002Farchitecture#storage"," for a custom backend.",[205,2363,2364],{"id":799},[13,2365,799],{},[854,2367,2368,2369,638,2371,2373,2374,806,2376,2378,2379,2381,2382,2384,2385,194],{"type":856},"The project root that ",[13,2370,113],{},[13,2372,675],{}," resolve against. Default: the config file's folder, or the folder above ",[13,2375,805],{},[13,2377,809],{},". A relative ",[13,2380,799],{}," resolves from that folder. See ",[190,2383,193],{"href":192}," for ",[13,2386,641],{},[205,2388,2389],{"id":408},[13,2390,408],{},[854,2392,2394,2395,286,2398,286,2401,1395,2404,2407,2408,2412,2413,194],{"type":2393},"Array\u003CReporter>","The reporters a run can use. Default: the built-in ",[13,2396,2397],{},"cli",[13,2399,2400],{},"json",[13,2402,2403],{},"file",[13,2405,2406],{},"html"," reporters. The ",[190,2409,2410],{"href":418},[13,2411,421],{}," flag picks which ones run and defaults to ",[13,2414,2397],{},[205,2416,2418],{"id":2417},"diagnostics",[13,2419,2417],{},[854,2421,2423,2439],{"type":2422},"{ ignore?: Array\u003Cstring> }",[10,2424,2425,2426,2429,2430,2433,2434,2438],{},"Diagnostic codes to hide. ",[13,2427,2428],{},"ignore"," drops warnings and info with a listed code from the terminal, the reports, and ",[13,2431,2432],{},"safeBuild().diagnostics",". Errors still show and still fail the run. See ",[190,2435,2437],{"href":2436},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics","Diagnostics"," for the codes.",[22,2440,2443],{"language":2441,"filename":15,"code":2442,"class":26},"ts","export default defineConfig({\n diagnostics: { ignore: ['KUBB_UNSUPPORTED_FORMAT'] },\n})",[13,2444,2446,57,2456,57,2480],{"class":2445},"language-ts",[31,2447,2448,2450,2452,2454],{"class":33,"style":34},[31,2449,80],{"style":37},[31,2451,83],{"style":37},[31,2453,19],{"style":86},[31,2455,89],{"style":41},[31,2457,2458,2460,2462,2464,2466,2468,2470,2472,2475,2478],{"class":33,"style":34},[31,2459,94],{"style":41},[31,2461,2417],{"style":41},[31,2463,100],{"style":37},[31,2465,42],{"style":41},[31,2467,2428],{"style":41},[31,2469,100],{"style":37},[31,2471,156],{"style":41},[31,2473,2474],{"style":55},"'KUBB_UNSUPPORTED_FORMAT'",[31,2476,2477],{"style":41},"] }",[31,2479,106],{"style":37},[31,2481,2482],{"class":33,"style":34},[31,2483,169],{"style":41},[205,2485,2487],{"id":2486},"security",[13,2488,2486],{},[854,2490,2492,2502,2505,2525,2639,2659],{"type":2491},"{ read?: boolean | { allow?: string[]; deny?: string[] }; net?: boolean | { allow?: string[]; deny?: string[] } }",[10,2493,2494,2495,2497,2498,2501],{},"Limits which local files and hosts Kubb reads when your spec points at them with a ",[13,2496,1380],{},". Without it, ",[13,2499,2500],{},"kubb generate"," reads every file and host.",[10,2503,2504],{},"It has two parts:",[2100,2506,2507,2516],{},[2103,2508,2509,2512,2513,2515],{},[13,2510,2511],{},"read",": the folders a ",[13,2514,1380],{}," file may be in.",[2103,2517,2518,2521,2522,2524],{},[13,2519,2520],{},"net",": the hosts a ",[13,2523,1380],{}," URL may be on.",[22,2526,2528],{"language":2441,"filename":15,"code":2527,"class":26},"import { defineConfig } from 'kubb\u002Fconfig'\n\nexport default defineConfig({\n security: {\n \u002F\u002F Also read ..\u002Fshared-schemas, next to the project folder.\n read: { allow: ['..\u002Fshared-schemas'] },\n \u002F\u002F Also reach this internal host, next to public hosts.\n net: { allow: ['specs.corp.internal'] },\n },\n})",[13,2529,2530,57,2544,57,2546,57,2556,57,2566,57,2573,57,2597,57,2604,57,2627,57,2635],{"class":2445},[31,2531,2532,2534,2536,2538,2540,2542],{"class":33,"style":34},[31,2533,38],{"style":37},[31,2535,42],{"style":41},[31,2537,46],{"style":45},[31,2539,49],{"style":41},[31,2541,52],{"style":37},[31,2543,56],{"style":55},[31,2545],{"class":33,"style":34},[31,2547,2548,2550,2552,2554],{"class":33,"style":34},[31,2549,80],{"style":37},[31,2551,83],{"style":37},[31,2553,19],{"style":86},[31,2555,89],{"style":41},[31,2557,2558,2560,2562,2564],{"class":33,"style":34},[31,2559,94],{"style":41},[31,2561,2486],{"style":41},[31,2563,100],{"style":37},[31,2565,905],{"style":41},[31,2567,2568,2570],{"class":33,"style":34},[31,2569,1570],{"style":41},[31,2571,2572],{"style":1744},"\u002F\u002F Also read ..\u002Fshared-schemas, next to the project folder.",[31,2574,2575,2577,2579,2581,2583,2586,2588,2590,2593,2595],{"class":33,"style":34},[31,2576,1570],{"style":1744},[31,2578,2511],{"style":41},[31,2580,100],{"style":37},[31,2582,42],{"style":41},[31,2584,2585],{"style":41},"allow",[31,2587,100],{"style":37},[31,2589,156],{"style":41},[31,2591,2592],{"style":55},"'..\u002Fshared-schemas'",[31,2594,2477],{"style":41},[31,2596,106],{"style":37},[31,2598,2599,2601],{"class":33,"style":34},[31,2600,1570],{"style":37},[31,2602,2603],{"style":1744},"\u002F\u002F Also reach this internal host, next to public hosts.",[31,2605,2606,2608,2610,2612,2614,2616,2618,2620,2623,2625],{"class":33,"style":34},[31,2607,1570],{"style":1744},[31,2609,2520],{"style":41},[31,2611,100],{"style":37},[31,2613,42],{"style":41},[31,2615,2585],{"style":41},[31,2617,100],{"style":37},[31,2619,156],{"style":41},[31,2621,2622],{"style":55},"'specs.corp.internal'",[31,2624,2477],{"style":41},[31,2626,106],{"style":37},[31,2628,2629,2631,2633],{"class":33,"style":34},[31,2630,94],{"style":37},[31,2632,142],{"style":41},[31,2634,106],{"style":37},[31,2636,2637],{"class":33,"style":34},[31,2638,169],{"style":41},[10,2640,2641,2642,2644,2645,2647,2648,2654,2655,2658],{},"Once ",[13,2643,2486],{}," is set, a ",[13,2646,1380],{}," reads files inside your project and public hosts, plus what you allow. A file or host the rules refuse fails the run with ",[190,2649,2651],{"href":2650},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-access-refused",[13,2652,2653],{},"KUBB_ACCESS_REFUSED",". Secret files such as ",[13,2656,2657],{},".env"," and keys are always refused.",[2100,2660,2661,2668],{},[2103,2662,2663,2667],{},[190,2664,2666],{"href":2665},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Frecipes#security","Limit what a spec may read"," has a config for each common case.",[2103,2669,2670,2674],{},[190,2671,2673],{"href":2672},"\u002Fdocs\u002F5.x\u002Freference\u002Fsecurity","Security"," lists every setting.",[2676,2677],"studio-cta",{"source":2678},"configuration-reference",[171,2680,2682],{"id":2681},"less-common-cases","Less common cases",[205,2684,193],{"id":2685},"config-loading",[10,2687,2688,2689,286,2691,2693],{},"Without ",[13,2690,180],{},[13,2692,2500],{}," searches for a config file and turns its default export into one config per entry.",[2695,2696],"mermaid",{"svg":2697},"\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>",[2100,2699,2700,2716,2737],{},[2103,2701,2702,2703,2706,2707,2710,2711,638,2713,2715],{},"In each folder, ",[13,2704,2705],{},".kubbrc.*"," comes before ",[13,2708,2709],{},"kubb.config.*",", and the folder before its ",[13,2712,805],{},[13,2714,809],{}," subfolders.",[2103,2717,2718,2719,286,2722,286,2725,286,2728,286,2731,286,2734,194],{},"Extensions are tried in the order ",[13,2720,2721],{},".ts",[13,2723,2724],{},".mts",[13,2726,2727],{},".cts",[13,2729,2730],{},".js",[13,2732,2733],{},".mjs",[13,2735,2736],{},".cjs",[2103,2738,2739,2740,194],{},"When nothing matches, the CLI stops and suggests ",[13,2741,2742],{},"kubb init",[1406,2744,2746],{"id":2745},"root-folder","Root folder",[10,2748,2688,2749,2753,2754,806,2756,194],{},[190,2750,2751],{"href":946},[13,2752,799],{},", the root is the config file's folder, or its parent for a config in ",[13,2755,805],{},[13,2757,809],{},[2100,2759,2760,2766],{},[2103,2761,2762,2763,2765],{},"A relative ",[13,2764,799],{}," resolves from that folder.",[2103,2767,2768,2770,2771,194],{},[13,2769,641],{}," without a config file uses ",[13,2772,832],{},[1406,2774,2776],{"id":2775},"defaults-outside-the-cli","Defaults outside the CLI",[10,2778,2688,2779,2781,2782,2785],{},[13,2780,2500],{},", fewer ",[190,2783,628],{"href":2784},"#defaults"," apply:",[2100,2787,2788,2806],{},[2103,2789,2790,634,2792,2794,2795,286,2797,286,2799,286,2801,1395,2803,2805],{},[13,2791,641],{},[13,2793,838],{}," applies only the ",[13,2796,799],{},[13,2798,787],{},[13,2800,697],{},[13,2802,708],{},[13,2804,734],{}," defaults.",[2103,2807,2808,2812,2813,2815],{},[190,2809,2811],{"href":2810},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Fbuild-tools","Build tool integrations"," apply the ",[13,2814,19],{}," defaults, but run only the summary reporter.",[1406,2817,2819],{"id":2818},"extension-commands","Extension commands",[10,2821,2822,286,2825,286,2828,1395,2831,2834,2835,2837,2838,2840,2841,638,2844,2847,2848,194],{},[13,2823,2824],{},"kubb add",[13,2826,2827],{},"kubb update",[13,2829,2830],{},"kubb list",[13,2832,2833],{},"kubb remove"," read ",[13,2836,180],{},", or search for a config as ",[13,2839,2500],{}," does. With several config entries, ",[13,2842,2843],{},"add",[13,2845,2846],{},"remove"," edit the first one. See ",[190,2849,2851],{"href":2850},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands#project-files","Project files",[1406,2853,2855],{"id":2854},"kubb-validate","kubb validate",[10,2857,2858,2859,2861,2862,194],{},"The adapter ",[13,2860,2855],{}," runs depends on the config it finds. See ",[190,2863,2865],{"href":2864},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fvalidate#which-adapter-runs","Which adapter runs",[310,2867,2868,2877],{},[313,2869,2870],{},[316,2871,2872,2875],{},[319,2873,2874],{},"Situation",[319,2876,2179],{},[329,2878,2879,2890,2898],{},[316,2880,2881,2884],{},[334,2882,2883],{},"A config is found or passed",[334,2885,2886,2887,2889],{},"Each entry's adapter. A local path resolves from the entry's ",[13,2888,799],{},", or the current folder.",[316,2891,2892,2895],{},[334,2893,2894],{},"A config entry has no adapter",[334,2896,2897],{},"None. The command fails.",[316,2899,2900,2903],{},[334,2901,2902],{},"No config, or a found config that fails to load",[334,2904,2905,2907,2908,2910],{},[13,2906,2197],{},". A ",[13,2909,180],{}," file that fails to load fails the command.",[2100,2912,2913,2916],{},[2103,2914,2915],{},"An array config that repeats one adapter and input validates that pair once.",[2103,2917,2918],{},"A URL or git input is passed unchanged. A git input is fetched into a temporary folder, validated, and deleted.",[205,2920,1377,2922,1381],{"id":2921},"external-refs",[13,2923,1380],{},[10,2925,2926,2927,194],{},"A spec can point at another file or URL with a ",[13,2928,1380],{},[2100,2930,2931,2936,2941,2948],{},[2103,2932,2762,2933,2935],{},[13,2934,1380],{}," resolves from the folder of the input file.",[2103,2937,2938,2939,194],{},"An object or inline input has no file, so its refs resolve from ",[13,2940,799],{},[2103,2942,2943,2944,2947],{},"An OpenAPI 3.2 ",[13,2945,2946],{},"$self"," changes the base.",[2103,2949,2950,2951,2953],{},"Every request for a URL input or a ",[13,2952,1380],{}," URL stops after 30 seconds.",[10,2955,2956,2957,2959],{},"What a ",[13,2958,1380],{}," may read depends on where Kubb runs:",[310,2961,2962,2979],{},[313,2963,2964],{},[316,2965,2966,2969,2974],{},[319,2967,2968],{},"Run",[319,2970,2971,2972,1381],{},"Local ",[13,2973,1380],{},[319,2975,2976,2978],{},[13,2977,1380],{}," URLs",[329,2980,2981,2999,3013,3024,3035,3045],{},[316,2982,2983,2993,2996],{},[334,2984,2985,2987,2988],{},[13,2986,2500],{}," without ",[190,2989,2991],{"href":2990},"#security",[13,2992,2486],{},[334,2994,2995],{},"Any file",[334,2997,2998],{},"Any host",[316,3000,3001,3008,3011],{},[334,3002,3003,3005,3006],{},[13,3004,2500],{}," with ",[13,3007,2486],{},[334,3009,3010],{},"What the rules allow",[334,3012,3010],{},[316,3014,3015,3018,3021],{},[334,3016,3017],{},"A URL input",[334,3019,3020],{},"None, so a fetched spec cannot read your files",[334,3022,3023],{},"As above",[316,3025,3026,3029,3032],{},[334,3027,3028],{},"The MCP server, a Kubb Studio agent you host",[334,3030,3031],{},"Files inside the project or the input's folder",[334,3033,3034],{},"Public hosts only",[316,3036,3037,3040,3043],{},[334,3038,3039],{},"A shared (sandbox) Kubb Studio agent",[334,3041,3042],{},"None",[334,3044,3034],{},[316,3046,3047,3050,3053],{},[334,3048,3049],{},"A hosted (managed) Kubb Studio agent",[334,3051,3052],{},"Files in the repository of a git input",[334,3054,3034],{},[10,3056,3057,3058,3061],{},"A host is not public when it is ",[13,3059,3060],{},"localhost",", a private network address, or a cloud metadata address. A redirect to such a host is refused too.",[10,3063,3064,3065,3067],{},"To fix a refused ",[13,3066,1380],{},":",[3069,3070,3071,3074],"ol",{},[2103,3072,3073],{},"Move the file into the project, or inline the schema.",[2103,3075,3076,3077,3079,3080,3083,3084,833,3088,3090],{},"Or allow its folder with ",[13,3078,2511],{},", or its host with ",[13,3081,3082],{},"net.allow",", in ",[190,3085,3086],{"href":2990},[13,3087,2486],{},[190,3089,2666],{"href":2665}," shows how.",[205,3092,3094],{"id":3093},"security-rules","Security rules",[10,3096,3097,3099],{},[190,3098,2673],{"href":2672}," lists the settings and what is always refused.",[205,3101,1372],{"id":3102},"git-input",[10,3104,3105,3106,3108,3109,194],{},"For a spec in a git repository, write ",[13,3107,113],{}," as ",[13,3110,954],{},[2100,3112,3113,3119,3126],{},[2103,3114,3115,3118],{},[13,3116,3117],{},"\u003Cref>"," is a branch, a tag, or a full commit SHA on hosts that fetch by SHA, such as GitHub and GitLab.",[2103,3120,3121,3122,3125],{},"Leave out ",[13,3123,3124],{},"\u003Cref>:"," to use the default branch.",[2103,3127,3128,3129,3132,3133,959,3135,3137],{},"Kubb runs a shallow ",[13,3130,3131],{},"git fetch"," into a temporary folder. It needs ",[13,3134,958],{},[13,3136,962],{},". For a private repository, it uses your git credentials.",[10,3139,1368,3140,3144],{},[190,3141,3143],{"href":3142},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Frecipes#read-the-spec-from-a-git-repository","Read the spec from a git repository"," for a config.",{"title":3146,"searchDepth":3147,"depth":3147,"links":3148},"",5,[3149,3151,3156,3157,3180],{"id":173,"depth":3150,"text":174},2,{"id":197,"depth":3150,"text":198,"children":3152},[3153,3155],{"id":207,"depth":3154,"text":208},3,{"id":449,"depth":3154,"text":450},{"id":628,"depth":3150,"text":629},{"id":844,"depth":3150,"text":845,"children":3158},[3159,3160,3161,3171,3172,3173,3174,3175,3176,3177,3178,3179],{"id":97,"depth":3154,"text":97},{"id":113,"depth":3154,"text":113},{"id":127,"depth":3154,"text":127,"children":3162},[3163,3165,3166,3167,3168,3169,3170],{"id":1408,"depth":3164,"text":675},4,{"id":1419,"depth":3164,"text":685},{"id":1459,"depth":3164,"text":697},{"id":1478,"depth":3164,"text":708},{"id":1496,"depth":3164,"text":1499},{"id":1677,"depth":3164,"text":719},{"id":1714,"depth":3164,"text":734},{"id":624,"depth":3154,"text":624},{"id":151,"depth":3154,"text":151},{"id":758,"depth":3154,"text":758},{"id":775,"depth":3154,"text":775},{"id":787,"depth":3154,"text":787},{"id":799,"depth":3154,"text":799},{"id":408,"depth":3154,"text":408},{"id":2417,"depth":3154,"text":2417},{"id":2486,"depth":3154,"text":2486},{"id":2681,"depth":3150,"text":2682,"children":3181},[3182,3188,3190,3191],{"id":2685,"depth":3154,"text":193,"children":3183},[3184,3185,3186,3187],{"id":2745,"depth":3164,"text":2746},{"id":2775,"depth":3164,"text":2776},{"id":2818,"depth":3164,"text":2819},{"id":2854,"depth":3164,"text":2855},{"id":2921,"depth":3154,"text":3189},"External $ref files",{"id":3093,"depth":3154,"text":3094},{"id":3102,"depth":3154,"text":1372},"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":3195,"title":5,"description":3192,"outline":3196,"order":3197,"navigation":3198},"doc",[3150,3154],1,{"title":3199,"icon":3200},"Configuration","i-iconoir-settings",{"layout":3195,"outline":3202},[3150,3154],{"title":3199,"icon":3200},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration",{"title":5,"description":3192},{"loc":3204},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration.md","docs\u002F5.x\u002Freference\u002Fconfiguration","TDo7PCOfrwEBuXZBtIX7L-C4sQFZ_R7YJdkrSa3tp8Y",1795989033844,"2e8b4c62-5b8c-4587-97c0-530d08a9bd53"]