[{"data":1,"prerenderedAt":2724,"buildId":2725},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options":3},{"id":4,"title":5,"body":6,"description":2708,"extension":2709,"frontmatter":2710,"heading":5,"meta":2715,"navigation":2717,"order":2684,"path":2718,"seo":2719,"sitemap":2720,"source":2721,"stem":2722,"__hash__":2723},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options.md","Shared plugin options",{"type":7,"value":8,"toc":2680},"minimark",[9,34,38,53,72,181,185,198,202,219,243,253,457,460,476,479,495,520,589,593,609,631,705,826,830,841,852,854,864,867,885,930,934,942,971,975,988,1072,1075,1081,1085,1113,1218,1248,1264,1408,1506,1510,1514,1516,1531,1539,1670,1672,1683,1690,1751,1760,1939,1942,1948,1965,2148,2253,2260,2263,2271,2284,2305,2487,2501,2505,2508,2520,2574,2585,2605,2608,2625],[10,11,12,13,17,18,25,26,29,30,33],"p",{},"Every plugin that writes files takes these options to set where it writes, what it generates, and how it names files. A plugin's own options page lists only its defaults. ",[14,15,16],"code",{},"@kubb\u002Fplugin-barrel"," takes none and reads ",[19,20,22],"a",{"href":21},"#output-barrel",[14,23,24],{},"output.barrel",". ",[14,27,28],{},"@kubb\u002Fplugin-redoc"," takes only ",[14,31,32],{},"output.path",".",[35,36,37],"h2",{"id":37},"output",[39,40,41],"field-group",{},[42,43,45,46,49,50,33],"field",{"type":44},"Output","Where the plugin writes its files and how it exports them. Default: set by each plugin, such as ",[14,47,48],{},"{ path: 'types', barrel: { type: 'named' } }"," on ",[14,51,52],{},"@kubb\u002Fplugin-ts",[54,55,57,58,60,61,64,65,67,68,71],"blockquote",{"as":56},"warning","An ",[14,59,37],{}," you pass replaces the plugin default whole. Repeat ",[14,62,63],{},"barrel"," in it, or the plugin falls back to the root ",[14,66,24],{},", which is ",[14,69,70],{},"false"," unless you set it.",[73,74,79],"pre",{"language":75,"filename":76,"code":77,"class":78},"typescript","kubb.config.ts","import { pluginTs } from '@kubb\u002Fplugin-ts'\n\npluginTs({\n output: { path: 'models', barrel: { type: 'named' }, banner: '\u002F* eslint-disable *\u002F' },\n})","highlights",[14,80,82,109,110,109,112,109,121,109,176],{"class":81},"language-typescript",[83,84,87,91,95,99,102,105],"span",{"class":85,"style":86},"line","display: inline",[83,88,90],{"style":89},"color:#d73a49;--hls-dark:#f97583","import ",[83,92,94],{"style":93},"color:#005cc5;--hls-dark:#79b8ff","{ ",[83,96,98],{"style":97},"color:#24292e;--hls-dark:#e1e4e8","pluginTs ",[83,100,101],{"style":93},"} ",[83,103,104],{"style":89},"from ",[83,106,108],{"style":107},"color:#032f62;--hls-dark:#9ecbff","'@kubb\u002Fplugin-ts'","\n",[83,111],{"class":85,"style":86},[83,113,114,118],{"class":85,"style":86},[83,115,117],{"style":116},"color:#6f42c1;--hls-dark:#b392f0","pluginTs",[83,119,120],{"style":93},"({",[83,122,123,126,128,131,133,136,138,141,144,146,148,150,153,155,158,161,163,166,168,171,173],{"class":85,"style":86},[83,124,125],{"style":93}," ",[83,127,37],{"style":93},[83,129,130],{"style":89},": ",[83,132,94],{"style":93},[83,134,135],{"style":93},"path",[83,137,130],{"style":89},[83,139,140],{"style":107},"'models'",[83,142,143],{"style":89},", ",[83,145,63],{"style":93},[83,147,130],{"style":89},[83,149,94],{"style":93},[83,151,152],{"style":93},"type",[83,154,130],{"style":89},[83,156,157],{"style":107},"'named' ",[83,159,160],{"style":93},"}",[83,162,143],{"style":89},[83,164,165],{"style":93},"banner",[83,167,130],{"style":89},[83,169,170],{"style":107},"'\u002F* eslint-disable *\u002F' ",[83,172,160],{"style":93},[83,174,175],{"style":89},",",[83,177,178],{"class":85,"style":86},[83,179,180],{"style":93},"})",[182,183,32],"h3",{"id":184},"output-path",[39,186,187],{},[42,188,191,192,194,195,197],{"type":189,":required":190},"string","true","The plugin's folder or file, resolved inside the root ",[14,193,32],{},". Required in ",[14,196,37],{},". Default: set by each plugin.",[182,199,201],{"id":200},"output-mode","output.mode",[39,203,204],{},[42,205,207,208,211,212,214,215,218],{"type":206},"'directory' | 'file'","How the plugin splits its code into files. Default: ",[14,209,210],{},"'file'"," when ",[14,213,32],{}," has an extension, ",[14,216,217],{},"'directory'"," otherwise.",[39,220,221,234],{},[42,222,223,224,226,227,233],{"name":217},"Writes one file per operation or schema under ",[14,225,32],{},". Add ",[19,228,230],{"href":229},"#group",[14,231,232],{},"group"," to split them into subfolders.",[42,235,236,237,239,240,33],{"name":210},"Writes everything into one file. ",[14,238,32],{}," must include the extension, such as ",[14,241,242],{},"'types.ts'",[10,244,245,246,249,250,33],{},"Set ",[14,247,248],{},"mode: 'directory'"," only for a folder name with a dot, such as ",[14,251,252],{},"'clients.v2'",[73,254,256],{"language":75,"filename":76,"code":255,"class":78},"import { defineConfig } from 'kubb\u002Fconfig'\nimport { pluginTs } from '@kubb\u002Fplugin-ts'\nimport { pluginAxios } from '@kubb\u002Fplugin-axios'\n\nexport default defineConfig({\n input: '.\u002FpetStore.yaml',\n output: { path: '.\u002Fsrc\u002Fgen' },\n plugins: [\n pluginTs({ output: { path: 'types.ts' } }), \u002F\u002F src\u002Fgen\u002Ftypes.ts\n pluginAxios({ output: { path: 'clients' }, group: { type: 'tag' } }), \u002F\u002F src\u002Fgen\u002Fclients\u002Fpet\u002F, src\u002Fgen\u002Fclients\u002Fstore\u002F\n ],\n})",[14,257,258,109,274,109,288,109,304,109,306,109,319,109,333,109,354,109,366,109,398,109,444,109,453],{"class":81},[83,259,260,262,264,267,269,271],{"class":85,"style":86},[83,261,90],{"style":89},[83,263,94],{"style":93},[83,265,266],{"style":97},"defineConfig ",[83,268,101],{"style":93},[83,270,104],{"style":89},[83,272,273],{"style":107},"'kubb\u002Fconfig'",[83,275,276,278,280,282,284,286],{"class":85,"style":86},[83,277,90],{"style":89},[83,279,94],{"style":93},[83,281,98],{"style":97},[83,283,101],{"style":93},[83,285,104],{"style":89},[83,287,108],{"style":107},[83,289,290,292,294,297,299,301],{"class":85,"style":86},[83,291,90],{"style":89},[83,293,94],{"style":93},[83,295,296],{"style":97},"pluginAxios ",[83,298,101],{"style":93},[83,300,104],{"style":89},[83,302,303],{"style":107},"'@kubb\u002Fplugin-axios'",[83,305],{"class":85,"style":86},[83,307,308,311,314,317],{"class":85,"style":86},[83,309,310],{"style":89},"export ",[83,312,313],{"style":89},"default ",[83,315,316],{"style":116},"defineConfig",[83,318,120],{"style":93},[83,320,321,323,326,328,331],{"class":85,"style":86},[83,322,125],{"style":93},[83,324,325],{"style":93},"input",[83,327,130],{"style":89},[83,329,330],{"style":107},"'.\u002FpetStore.yaml'",[83,332,175],{"style":89},[83,334,335,337,339,341,343,345,347,350,352],{"class":85,"style":86},[83,336,125],{"style":89},[83,338,37],{"style":93},[83,340,130],{"style":89},[83,342,94],{"style":93},[83,344,135],{"style":93},[83,346,130],{"style":89},[83,348,349],{"style":107},"'.\u002Fsrc\u002Fgen' ",[83,351,160],{"style":93},[83,353,175],{"style":89},[83,355,356,358,361,363],{"class":85,"style":86},[83,357,125],{"style":89},[83,359,360],{"style":93},"plugins",[83,362,130],{"style":89},[83,364,365],{"style":93},"[",[83,367,368,371,373,376,378,380,382,384,386,389,392,394],{"class":85,"style":86},[83,369,370],{"style":93}," ",[83,372,117],{"style":116},[83,374,375],{"style":93},"({ ",[83,377,37],{"style":93},[83,379,130],{"style":89},[83,381,94],{"style":93},[83,383,135],{"style":93},[83,385,130],{"style":89},[83,387,388],{"style":107},"'types.ts' ",[83,390,391],{"style":93},"} })",[83,393,143],{"style":89},[83,395,397],{"style":396},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F src\u002Fgen\u002Ftypes.ts",[83,399,400,402,405,407,409,411,413,415,417,420,422,424,426,428,430,432,434,437,439,441],{"class":85,"style":86},[83,401,370],{"style":396},[83,403,404],{"style":116},"pluginAxios",[83,406,375],{"style":93},[83,408,37],{"style":93},[83,410,130],{"style":89},[83,412,94],{"style":93},[83,414,135],{"style":93},[83,416,130],{"style":89},[83,418,419],{"style":107},"'clients' ",[83,421,160],{"style":93},[83,423,143],{"style":89},[83,425,232],{"style":93},[83,427,130],{"style":89},[83,429,94],{"style":93},[83,431,152],{"style":93},[83,433,130],{"style":89},[83,435,436],{"style":107},"'tag' ",[83,438,391],{"style":93},[83,440,143],{"style":89},[83,442,443],{"style":396},"\u002F\u002F src\u002Fgen\u002Fclients\u002Fpet\u002F, src\u002Fgen\u002Fclients\u002Fstore\u002F",[83,445,446,448,451],{"class":85,"style":86},[83,447,125],{"style":396},[83,449,450],{"style":93},"]",[83,452,175],{"style":89},[83,454,455],{"class":85,"style":86},[83,456,180],{"style":93},[182,458,24],{"id":459},"output-barrel",[39,461,462],{},[42,463,465,466,469,470,473,474,33],{"type":464},"{ type: 'all' | 'named', nested?: boolean, namespace?: boolean } | false","How the plugin's ",[14,467,468],{},"index.ts"," files re-export its output. Default: ",[14,471,472],{},"{ type: 'named' }"," in the plugin's default ",[14,475,37],{},[477,478],"barrel-tree",{},[39,480,481,485,492],{},[42,482,484],{"name":483},"'named'","Re-exports each symbol by name, for explicit imports and tree-shaking.",[42,486,488,489,33],{"name":487},"'all'","Re-exports every file with ",[14,490,491],{},"export *",[42,493,494],{"name":70},"Writes no barrel for this plugin and leaves its files out of the root barrel.",[10,496,497,498,504,505,508,509,512,513,517,518,33],{},"See ",[19,499,501,503],{"href":500},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-barrel\u002Foptions",[14,502,16],{}," options"," for ",[14,506,507],{},"nested"," and ",[14,510,511],{},"namespace",", and ",[19,514,516],{"href":515},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-barrel\u002Fguides\u002Fbarrel-rules","Barrel rules"," for the fallback to the root ",[14,519,24],{},[73,521,523],{"language":75,"filename":76,"code":522,"class":78},"import { pluginZod } from '@kubb\u002Fplugin-zod'\n\npluginZod({ output: { path: 'zod', barrel: { type: 'all', nested: true } } })",[14,524,525,109,541,109,543],{"class":81},[83,526,527,529,531,534,536,538],{"class":85,"style":86},[83,528,90],{"style":89},[83,530,94],{"style":93},[83,532,533],{"style":97},"pluginZod ",[83,535,101],{"style":93},[83,537,104],{"style":89},[83,539,540],{"style":107},"'@kubb\u002Fplugin-zod'",[83,542],{"class":85,"style":86},[83,544,545,548,550,552,554,556,558,560,563,565,567,569,571,573,575,577,579,581,583,586],{"class":85,"style":86},[83,546,547],{"style":116},"pluginZod",[83,549,375],{"style":93},[83,551,37],{"style":93},[83,553,130],{"style":89},[83,555,94],{"style":93},[83,557,135],{"style":93},[83,559,130],{"style":89},[83,561,562],{"style":107},"'zod'",[83,564,143],{"style":89},[83,566,63],{"style":93},[83,568,130],{"style":89},[83,570,94],{"style":93},[83,572,152],{"style":93},[83,574,130],{"style":89},[83,576,487],{"style":107},[83,578,143],{"style":89},[83,580,507],{"style":93},[83,582,130],{"style":89},[83,584,585],{"style":93},"true ",[83,587,588],{"style":93},"} } })",[182,590,592],{"id":591},"output-banner","output.banner",[39,594,595],{},[42,596,598,599,602,603,33],{"type":597},"string | ((meta: BannerMeta) => string)","Text at the top of every generated file, such as a license header or ",[14,600,601],{},"'use server'",". Default: the root ",[19,604,606],{"href":605},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#outputdefaultbanner",[14,607,608],{},"output.defaultBanner",[10,610,611,612,615,616,619,620,623,624,508,627,630],{},"A string goes on every file, barrels included. A function runs per file and returns the banner, or ",[14,613,614],{},"''"," for none. Its ",[14,617,618],{},"BannerMeta"," holds the ",[14,621,622],{},"InputMeta"," fields, such as ",[14,625,626],{},"title",[14,628,629],{},"version",", plus:",[632,633,634,647],"table",{},[635,636,637],"thead",{},[638,639,640,644],"tr",{},[641,642,643],"th",{},"Field",[641,645,646],{},"Value",[648,649,650,661,674,689],"tbody",{},[638,651,652,658],{},[653,654,655],"td",{},[14,656,657],{},"filePath",[653,659,660],{},"The file's full output path",[638,662,663,668],{},[653,664,665],{},[14,666,667],{},"baseName",[653,669,670,671],{},"The file name, such as ",[14,672,673],{},"pet.ts",[638,675,676,681],{},[653,677,678],{},[14,679,680],{},"isBarrel",[653,682,683,685,686,688],{},[14,684,190],{}," for an ",[14,687,468],{}," barrel",[638,690,691,696],{},[653,692,693],{},[14,694,695],{},"isAggregation",[653,697,698,700,701,704],{},[14,699,190],{}," for a group ",[14,702,703],{},"[dir]\u002F[dir].ts"," aggregation file",[73,706,708],{"language":75,"filename":76,"code":707,"class":78},"import { pluginFetch } from '@kubb\u002Fplugin-fetch'\n\npluginFetch({\n output: {\n path: 'clients',\n banner: (meta) => (meta.isBarrel || meta.isAggregation ? '' : \"'use server'\"),\n },\n})",[14,709,710,109,726,109,728,109,735,109,746,109,759,109,814,109,822],{"class":81},[83,711,712,714,716,719,721,723],{"class":85,"style":86},[83,713,90],{"style":89},[83,715,94],{"style":93},[83,717,718],{"style":97},"pluginFetch ",[83,720,101],{"style":93},[83,722,104],{"style":89},[83,724,725],{"style":107},"'@kubb\u002Fplugin-fetch'",[83,727],{"class":85,"style":86},[83,729,730,733],{"class":85,"style":86},[83,731,732],{"style":116},"pluginFetch",[83,734,120],{"style":93},[83,736,737,739,741,743],{"class":85,"style":86},[83,738,125],{"style":93},[83,740,37],{"style":93},[83,742,130],{"style":89},[83,744,745],{"style":93},"{",[83,747,748,750,752,754,757],{"class":85,"style":86},[83,749,370],{"style":93},[83,751,135],{"style":93},[83,753,130],{"style":89},[83,755,756],{"style":107},"'clients'",[83,758,175],{"style":89},[83,760,761,763,765,767,770,773,776,779,781,783,785,788,791,793,795,798,801,804,806,809,812],{"class":85,"style":86},[83,762,370],{"style":89},[83,764,165],{"style":93},[83,766,130],{"style":89},[83,768,769],{"style":93},"(",[83,771,772],{"style":97},"meta",[83,774,775],{"style":93},") ",[83,777,778],{"style":89},"=> ",[83,780,769],{"style":93},[83,782,772],{"style":97},[83,784,33],{"style":89},[83,786,787],{"style":93},"isBarrel ",[83,789,790],{"style":89},"|| ",[83,792,772],{"style":97},[83,794,33],{"style":89},[83,796,797],{"style":93},"isAggregation ",[83,799,800],{"style":89},"? ",[83,802,803],{"style":107},"'' ",[83,805,130],{"style":89},[83,807,808],{"style":107},"\"'use server'\"",[83,810,811],{"style":93},")",[83,813,175],{"style":89},[83,815,816,818,820],{"class":85,"style":86},[83,817,125],{"style":89},[83,819,160],{"style":93},[83,821,175],{"style":89},[83,823,824],{"class":85,"style":86},[83,825,180],{"style":93},[182,827,829],{"id":828},"output-footer","output.footer",[39,831,832],{},[42,833,834,835,840],{"type":597},"Text at the bottom of every generated file, with the same values as ",[19,836,838],{"href":837},"#output-banner",[14,839,592],{},". Default: none.",[10,842,843,844,847,848,851],{},"Pair ",[14,845,846],{},"banner: '\u002F* eslint-disable *\u002F'"," with ",[14,849,850],{},"footer: '\u002F* eslint-enable *\u002F'"," to scope a lint disable to each file.",[35,853,232],{"id":232},[39,855,856],{},[42,857,859,860,863],{"type":858},"{ type: 'tag' | 'path', name?: (context: { group: string }) => string }","Puts each operation's files in a ",[14,861,862],{},"{output.path}\u002F{groupName}\u002F"," subfolder, named after its tag or URL path. Default: no grouping.",[865,866],"grouping-diagram",{},[54,868,870,871,873,874,878,879,33],{"as":869},"important","",[14,872,232],{}," needs ",[19,875,877],{"href":876},"#output-mode","directory output",", or the build stops with ",[19,880,882],{"href":881},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-invalid-plugin-options",[14,883,884],{},"KUBB_INVALID_PLUGIN_OPTIONS",[73,886,888],{"language":75,"filename":76,"code":887,"class":78},"import { pluginTs } from '@kubb\u002Fplugin-ts'\n\npluginTs({ group: { type: 'tag' } }) \u002F\u002F src\u002Fgen\u002Ftypes\u002Fpet\u002F, src\u002Fgen\u002Ftypes\u002Fstore\u002F, ...",[14,889,890,109,904,109,906],{"class":81},[83,891,892,894,896,898,900,902],{"class":85,"style":86},[83,893,90],{"style":89},[83,895,94],{"style":93},[83,897,98],{"style":97},[83,899,101],{"style":93},[83,901,104],{"style":89},[83,903,108],{"style":107},[83,905],{"class":85,"style":86},[83,907,908,910,912,914,916,918,920,922,924,927],{"class":85,"style":86},[83,909,117],{"style":116},[83,911,375],{"style":93},[83,913,232],{"style":93},[83,915,130],{"style":89},[83,917,94],{"style":93},[83,919,152],{"style":93},[83,921,130],{"style":89},[83,923,436],{"style":107},[83,925,926],{"style":93},"} }) ",[83,928,929],{"style":396},"\u002F\u002F src\u002Fgen\u002Ftypes\u002Fpet\u002F, src\u002Fgen\u002Ftypes\u002Fstore\u002F, ...",[182,931,933],{"id":932},"group-type","group.type",[39,935,936],{},[42,937,939,940,33],{"type":938,":required":190},"'tag' | 'path'","Which value assigns an operation to a group. Required in ",[14,941,232],{},[39,943,944,961],{},[42,945,947,948,951,952,956,957,960],{"name":946},"'tag'","The operation's first tag. An operation without tags goes in the ",[14,949,950],{},"default"," group. See ",[19,953,955],{"href":954},"#group-folders","Group folders"," for OpenAPI 3.2 ",[14,958,959],{},"parent"," tags.",[42,962,964,965,504,968,33],{"name":963},"'path'","The first segment of the URL path, such as ",[14,966,967],{},"pet",[14,969,970],{},"\u002Fpet\u002F{petId}",[182,972,974],{"id":973},"group-name","group.name",[39,976,977],{},[42,978,980,981,984,985,33],{"type":979},"(context: { group: string }) => string","Turns the group value into the folder name, which is also the suffix of aggregation files. Default: the value in camelCase, so ",[14,982,983],{},"pet store"," becomes ",[14,986,987],{},"petStore",[73,989,991],{"language":75,"filename":76,"code":990,"class":78},"import { pluginTs } from '@kubb\u002Fplugin-ts'\n\npluginTs({\n group: { type: 'tag', name: ({ group }) => `${group}Api` }, \u002F\u002F src\u002Fgen\u002Ftypes\u002FpetApi\u002F\n})",[14,992,993,109,1007,109,1009,109,1015,109,1068],{"class":81},[83,994,995,997,999,1001,1003,1005],{"class":85,"style":86},[83,996,90],{"style":89},[83,998,94],{"style":93},[83,1000,98],{"style":97},[83,1002,101],{"style":93},[83,1004,104],{"style":89},[83,1006,108],{"style":107},[83,1008],{"class":85,"style":86},[83,1010,1011,1013],{"class":85,"style":86},[83,1012,117],{"style":116},[83,1014,120],{"style":93},[83,1016,1017,1019,1021,1023,1025,1027,1029,1031,1033,1036,1038,1040,1043,1046,1048,1051,1054,1056,1058,1061,1063,1065],{"class":85,"style":86},[83,1018,125],{"style":93},[83,1020,232],{"style":93},[83,1022,130],{"style":89},[83,1024,94],{"style":93},[83,1026,152],{"style":93},[83,1028,130],{"style":89},[83,1030,946],{"style":107},[83,1032,143],{"style":89},[83,1034,1035],{"style":93},"name",[83,1037,130],{"style":89},[83,1039,375],{"style":93},[83,1041,1042],{"style":97},"group ",[83,1044,1045],{"style":93},"}) ",[83,1047,778],{"style":89},[83,1049,1050],{"style":107},"`",[83,1052,1053],{"style":97},"${",[83,1055,232],{"style":97},[83,1057,160],{"style":97},[83,1059,1060],{"style":107},"Api` ",[83,1062,160],{"style":93},[83,1064,143],{"style":89},[83,1066,1067],{"style":396},"\u002F\u002F src\u002Fgen\u002Ftypes\u002FpetApi\u002F",[83,1069,1070],{"class":85,"style":86},[83,1071,180],{"style":93},[35,1073,1074],{"id":1074},"include",[39,1076,1077],{},[42,1078,1080],{"type":1079},"Array\u003CInclude>","Generates only the operations and schemas that match an entry. Default: everything.",[182,1082,1084],{"id":1083},"how-filters-match","How filters match",[10,1086,1087,143,1089,512,1095,1101,1102,1104,1105,1108,1109,1112],{},[14,1088,1074],{},[19,1090,1092],{"href":1091},"#exclude",[14,1093,1094],{},"exclude",[19,1096,1098],{"href":1097},"#override",[14,1099,1100],{},"override"," entries share one shape: a ",[14,1103,152],{},", and usually a ",[14,1106,1107],{},"pattern",". Every type except ",[14,1110,1111],{},"schemaName"," matches operations.",[632,1114,1115,1129],{},[635,1116,1117],{},[638,1118,1119,1123],{},[641,1120,1121],{},[14,1122,152],{},[641,1124,1125,1126,1128],{},"Tests ",[14,1127,1107],{}," against",[648,1130,1131,1141,1153,1164,1174,1184,1196],{},[638,1132,1133,1138],{},[653,1134,1135],{},[14,1136,1137],{},"tag",[653,1139,1140],{},"Each operation tag",[638,1142,1143,1148],{},[653,1144,1145],{},[14,1146,1147],{},"operationId",[653,1149,1150,1151],{},"The ",[14,1152,1147],{},[638,1154,1155,1159],{},[653,1156,1157],{},[14,1158,135],{},[653,1160,1161,1162],{},"The full URL path, such as ",[14,1163,970],{},[638,1165,1166,1171],{},[653,1167,1168],{},[14,1169,1170],{},"method",[653,1172,1173],{},"The HTTP method, ignoring case",[638,1175,1176,1181],{},[653,1177,1178],{},[14,1179,1180],{},"contentType",[653,1182,1183],{},"Each request body content type",[638,1185,1186,1190],{},[653,1187,1188],{},[14,1189,1111],{},[653,1191,1150,1192,1195],{},[14,1193,1194],{},"#\u002Fcomponents\u002Fschemas"," name, for schemas",[638,1197,1198,1203],{},[653,1199,1200],{},[14,1201,1202],{},"extension",[653,1204,1205,1206,1209,1210,1213,1214,1217],{},"No pattern. Matches an ",[14,1207,1208],{},"x-*"," ",[14,1211,1212],{},"key"," on the operation, and ",[14,1215,1216],{},"value"," by strict equality when set",[54,1219,1220,1221,984,1223,1226,1227,1230,1231,1234,1235,1238,1239,1242,1243,1247],{"as":56},"A string ",[14,1222,1107],{},[14,1224,1225],{},"new RegExp(pattern)",", so it matches anywhere: ",[14,1228,1229],{},"'pet'"," also matches ",[14,1232,1233],{},"'petType'",". Write ",[14,1236,1237],{},"'^pet$'"," for an exact match. A string that is not a valid regular expression, such as ",[14,1240,1241],{},"'('",", fails the run with ",[19,1244,1245],{"href":881},[14,1246,884],{}," before generation starts.",[10,1249,1250,1251,1253,1254,1256,1257,1259,1260,33],{},"Without a ",[14,1252,1111],{}," entry, ",[14,1255,1074],{}," keeps only the schemas its operations use. A ",[14,1258,1111],{}," entry also keeps the schemas the matched schemas reference. See ",[19,1261,1263],{"href":1262},"#filters","Filters",[73,1265,1268],{"language":75,"filename":1266,"code":1267,"class":78},"Type definition","export type Include =\n | { type: 'tag' | 'operationId' | 'path' | 'contentType' | 'schemaName'; pattern: string | RegExp }\n | { type: 'method'; pattern: HttpMethod | RegExp }\n | { type: 'extension'; key: `x-${string}`; value?: unknown }",[14,1269,1270,109,1283,109,1334,109,1364],{"class":81},[83,1271,1272,1274,1277,1280],{"class":85,"style":86},[83,1273,310],{"style":89},[83,1275,1276],{"style":89},"type ",[83,1278,1279],{"style":116},"Include ",[83,1281,1282],{"style":89},"=",[83,1284,1285,1288,1290,1292,1294,1296,1299,1302,1304,1307,1309,1312,1314,1317,1320,1322,1324,1327,1329,1332],{"class":85,"style":86},[83,1286,1287],{"style":89}," | ",[83,1289,94],{"style":93},[83,1291,152],{"style":93},[83,1293,130],{"style":89},[83,1295,436],{"style":107},[83,1297,1298],{"style":89},"| ",[83,1300,1301],{"style":107},"'operationId' ",[83,1303,1298],{"style":89},[83,1305,1306],{"style":107},"'path' ",[83,1308,1298],{"style":89},[83,1310,1311],{"style":107},"'contentType' ",[83,1313,1298],{"style":89},[83,1315,1316],{"style":107},"'schemaName'",[83,1318,1319],{"style":89},"; ",[83,1321,1107],{"style":93},[83,1323,130],{"style":97},[83,1325,1326],{"style":116},"string ",[83,1328,1298],{"style":89},[83,1330,1331],{"style":116},"RegExp ",[83,1333,160],{"style":93},[83,1335,1336,1338,1340,1342,1344,1346,1349,1351,1353,1355,1358,1360,1362],{"class":85,"style":86},[83,1337,125],{"style":93},[83,1339,1298],{"style":89},[83,1341,94],{"style":93},[83,1343,152],{"style":93},[83,1345,130],{"style":89},[83,1347,1348],{"style":107},"'method'",[83,1350,1319],{"style":89},[83,1352,1107],{"style":93},[83,1354,130],{"style":97},[83,1356,1357],{"style":116},"HttpMethod ",[83,1359,1298],{"style":89},[83,1361,1331],{"style":116},[83,1363,160],{"style":93},[83,1365,1366,1368,1370,1372,1374,1376,1379,1381,1383,1385,1388,1390,1392,1394,1396,1398,1400,1403,1406],{"class":85,"style":86},[83,1367,125],{"style":93},[83,1369,1298],{"style":89},[83,1371,94],{"style":93},[83,1373,152],{"style":93},[83,1375,130],{"style":89},[83,1377,1378],{"style":107},"'extension'",[83,1380,1319],{"style":89},[83,1382,1212],{"style":93},[83,1384,130],{"style":89},[83,1386,1387],{"style":107},"`x-",[83,1389,1053],{"style":97},[83,1391,189],{"style":97},[83,1393,160],{"style":97},[83,1395,1050],{"style":107},[83,1397,1319],{"style":89},[83,1399,1216],{"style":93},[83,1401,1402],{"style":97},"?: ",[83,1404,1405],{"style":116},"unknown ",[83,1407,160],{"style":93},[73,1409,1411],{"language":75,"filename":76,"code":1410,"class":78},"import { pluginTs } from '@kubb\u002Fplugin-ts'\n\npluginTs({\n include: [\n { type: 'tag', pattern: 'pet' },\n { type: 'path', pattern: \u002F^\\\u002Fstore\u002F },\n ],\n})",[14,1412,1413,109,1427,109,1429,109,1435,109,1445,109,1469,109,1494,109,1502],{"class":81},[83,1414,1415,1417,1419,1421,1423,1425],{"class":85,"style":86},[83,1416,90],{"style":89},[83,1418,94],{"style":93},[83,1420,98],{"style":97},[83,1422,101],{"style":93},[83,1424,104],{"style":89},[83,1426,108],{"style":107},[83,1428],{"class":85,"style":86},[83,1430,1431,1433],{"class":85,"style":86},[83,1432,117],{"style":116},[83,1434,120],{"style":93},[83,1436,1437,1439,1441,1443],{"class":85,"style":86},[83,1438,125],{"style":93},[83,1440,1074],{"style":93},[83,1442,130],{"style":89},[83,1444,365],{"style":93},[83,1446,1447,1450,1452,1454,1456,1458,1460,1462,1465,1467],{"class":85,"style":86},[83,1448,1449],{"style":93}," { ",[83,1451,152],{"style":93},[83,1453,130],{"style":89},[83,1455,946],{"style":107},[83,1457,143],{"style":89},[83,1459,1107],{"style":93},[83,1461,130],{"style":89},[83,1463,1464],{"style":107},"'pet' ",[83,1466,160],{"style":93},[83,1468,175],{"style":89},[83,1470,1471,1473,1475,1477,1479,1481,1483,1485,1487,1490,1492],{"class":85,"style":86},[83,1472,370],{"style":89},[83,1474,94],{"style":93},[83,1476,152],{"style":93},[83,1478,130],{"style":89},[83,1480,963],{"style":107},[83,1482,143],{"style":89},[83,1484,1107],{"style":93},[83,1486,130],{"style":89},[83,1488,1489],{"style":107},"\u002F^\\\u002Fstore\u002F ",[83,1491,160],{"style":93},[83,1493,175],{"style":89},[83,1495,1496,1498,1500],{"class":85,"style":86},[83,1497,125],{"style":89},[83,1499,450],{"style":93},[83,1501,175],{"style":89},[83,1503,1504],{"class":85,"style":86},[83,1505,180],{"style":93},[182,1507,1509],{"id":1508},"precedence","Precedence",[1511,1512],"mermaid",{"svg":1513},"\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" class=\"pele pele-flowchart\" viewBox=\"0 0 1505 270\" width=\"1505\" height=\"270\" 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_node_ex_0\">\u003Cpath d=\"M193.39,97.07L234.39,97.07\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M241.39,97.07L233.39,100.43L233.39,93.71Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_ex_skip_0\">\u003Cpath d=\"M486.27,88.62C530.82,88.62 530.82,24 575.36,24L1000.53,24\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M1007.53,24L999.53,27.36L999.53,20.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_ex_inc_0\">\u003Cpath d=\"M486.27,105.52C503.28,105.52 503.28,158.86 520.29,158.86L568.36,158.86\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M575.36,158.86L567.36,162.22L567.36,155.5Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_inc_skip_0\">\u003Cpath d=\"M825.47,149.01C843.6,149.01 843.6,44.5 861.73,44.5L895.52,44.5C945.02,44.5 945.02,44 994.53,44L1000.53,44\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M1007.53,44L999.53,47.36L999.53,40.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_inc_ov_0\">\u003Cpath d=\"M808.43,179.36L916.02,179.36\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M923.02,179.36L915.02,182.72L915.02,176Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_ov_merged_0\">\u003Cpath d=\"M1115.45,135.36L1260.63,135.36\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M1267.63,135.36L1259.63,138.72L1259.63,132Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_ov_base_0\">\u003Cpath d=\"M1115.45,223.36L1260.63,223.36\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M1267.63,223.36L1259.63,226.72L1259.63,220Z\" 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_ex_skip_0\">\u003Crect x=\"693.4\" y=\"13.5\" width=\"29.78\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"708.3\" y=\"28.9\" text-anchor=\"middle\">yes\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"L_ex_inc_0\">\u003Crect x=\"522.29\" y=\"148.36\" width=\"23.57\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"534.08\" y=\"163.76\" text-anchor=\"middle\">no\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"L_inc_skip_0\">\u003Crect x=\"863.73\" y=\"34\" width=\"29.78\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"878.62\" y=\"49.4\" text-anchor=\"middle\">yes\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"L_inc_ov_0\">\u003Crect x=\"866.84\" y=\"168.86\" width=\"23.57\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"878.62\" y=\"184.26\" text-anchor=\"middle\">no\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"L_ov_merged_0\">\u003Crect x=\"1208.35\" y=\"124.86\" width=\"29.78\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"1223.24\" y=\"140.26\" text-anchor=\"middle\">yes\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"L_ov_base_0\">\u003Crect x=\"1211.46\" y=\"212.86\" width=\"23.57\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"1223.24\" y=\"228.26\" text-anchor=\"middle\">no\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-nodes\">\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"node\" transform=\"translate(100.7,97.07)\">\u003Crect x=\"-92.7\" y=\"-24\" width=\"185.39\" 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\">Operation or schema\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-diam\" data-id=\"ex\" transform=\"translate(370.59,97.07)\">\u003Cpolygon points=\"0,-80.75 129.2,0 0,80.75 -129.2,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Matches an exclude entry?\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"skip\" transform=\"translate(1054.43,32)\">\u003Crect x=\"-46.9\" y=\"-24\" width=\"93.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\">Skipped\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-diam\" data-id=\"inc\" transform=\"translate(708.3,158.86)\">\u003Cpolygon points=\"0,-83.08 132.94,0 0,83.09 -132.94,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" text-anchor=\"middle\" xml:space=\"preserve\">\u003Ctspan x=\"0\" y=\"-4.9\">include set and no entry\u003C\u002Ftspan>\u003Ctspan x=\"0\" y=\"16.1\">matches?\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-diam\" data-id=\"ov\" transform=\"translate(1054.43,179.36)\">\u003Cpolygon points=\"0,-82.13 131.42,0 0,82.14 -131.42,0\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">An override entry matches?\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect core\" data-id=\"merged\" transform=\"translate(1381.9,135.36)\">\u003Crect x=\"-114.26\" y=\"-24\" width=\"228.53\" 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\">Plugin options + first match\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"base\" transform=\"translate(1335.88,223.36)\">\u003Crect x=\"-68.25\" y=\"-24\" width=\"136.5\" 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\">Plugin options\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>",[35,1515,1094],{"id":1094},[39,1517,1518],{},[42,1519,1521,1522,512,1525,1527,1528,33],{"type":1520},"Array\u003CExclude>","Skips every operation or schema that matches an entry. Entries match as in ",[19,1523,1084],{"href":1524},"#how-filters-match",[14,1526,1094],{}," wins. Default: ",[14,1529,1530],{},"[]",[10,1532,1533,1534,1536,1537,33],{},"A ",[14,1535,1111],{}," entry also drops the schemas only the excluded schemas reference. See ",[19,1538,1263],{"href":1262},[73,1540,1542],{"language":75,"filename":76,"code":1541,"class":78},"import { pluginTs } from '@kubb\u002Fplugin-ts'\n\npluginTs({\n exclude: [\n { type: 'tag', pattern: 'internal' },\n { type: 'operationId', pattern: \u002F^deprecated_\u002F },\n { type: 'extension', key: 'x-internal', value: true },\n ],\n})",[14,1543,1544,109,1558,109,1560,109,1566,109,1576,109,1599,109,1625,109,1658,109,1666],{"class":81},[83,1545,1546,1548,1550,1552,1554,1556],{"class":85,"style":86},[83,1547,90],{"style":89},[83,1549,94],{"style":93},[83,1551,98],{"style":97},[83,1553,101],{"style":93},[83,1555,104],{"style":89},[83,1557,108],{"style":107},[83,1559],{"class":85,"style":86},[83,1561,1562,1564],{"class":85,"style":86},[83,1563,117],{"style":116},[83,1565,120],{"style":93},[83,1567,1568,1570,1572,1574],{"class":85,"style":86},[83,1569,125],{"style":93},[83,1571,1094],{"style":93},[83,1573,130],{"style":89},[83,1575,365],{"style":93},[83,1577,1578,1580,1582,1584,1586,1588,1590,1592,1595,1597],{"class":85,"style":86},[83,1579,1449],{"style":93},[83,1581,152],{"style":93},[83,1583,130],{"style":89},[83,1585,946],{"style":107},[83,1587,143],{"style":89},[83,1589,1107],{"style":93},[83,1591,130],{"style":89},[83,1593,1594],{"style":107},"'internal' ",[83,1596,160],{"style":93},[83,1598,175],{"style":89},[83,1600,1601,1603,1605,1607,1609,1612,1614,1616,1618,1621,1623],{"class":85,"style":86},[83,1602,370],{"style":89},[83,1604,94],{"style":93},[83,1606,152],{"style":93},[83,1608,130],{"style":89},[83,1610,1611],{"style":107},"'operationId'",[83,1613,143],{"style":89},[83,1615,1107],{"style":93},[83,1617,130],{"style":89},[83,1619,1620],{"style":107},"\u002F^deprecated_\u002F ",[83,1622,160],{"style":93},[83,1624,175],{"style":89},[83,1626,1627,1629,1631,1633,1635,1637,1639,1641,1643,1646,1648,1650,1652,1654,1656],{"class":85,"style":86},[83,1628,370],{"style":89},[83,1630,94],{"style":93},[83,1632,152],{"style":93},[83,1634,130],{"style":89},[83,1636,1378],{"style":107},[83,1638,143],{"style":89},[83,1640,1212],{"style":93},[83,1642,130],{"style":89},[83,1644,1645],{"style":107},"'x-internal'",[83,1647,143],{"style":89},[83,1649,1216],{"style":93},[83,1651,130],{"style":89},[83,1653,585],{"style":93},[83,1655,160],{"style":93},[83,1657,175],{"style":89},[83,1659,1660,1662,1664],{"class":85,"style":86},[83,1661,125],{"style":89},[83,1663,450],{"style":93},[83,1665,175],{"style":89},[83,1667,1668],{"class":85,"style":86},[83,1669,180],{"style":93},[35,1671,1100],{"id":1100},[39,1673,1674],{},[42,1675,1677,1678,1680,1681,33],{"type":1676},"Array\u003COverride>","Gives matching operations or schemas other plugin options. Entries match as in ",[19,1679,1084],{"href":1524},", top to bottom. Only the first match applies. Default: ",[14,1682,1530],{},[10,1684,1533,1685,1687,1688,33],{},[14,1686,1111],{}," entry also applies to the schemas the matched schemas reference. See ",[19,1689,1263],{"href":1262},[73,1691,1693],{"language":75,"filename":1266,"code":1692,"class":78},"export type Override = Include & {\n options: Omit\u003CPartial\u003CResolvedOptions>, 'override'>\n}",[14,1694,1695,109,1714,109,1747],{"class":81},[83,1696,1697,1699,1701,1704,1707,1709,1712],{"class":85,"style":86},[83,1698,310],{"style":89},[83,1700,1276],{"style":89},[83,1702,1703],{"style":116},"Override ",[83,1705,1706],{"style":89},"= ",[83,1708,1279],{"style":116},[83,1710,1711],{"style":89},"& ",[83,1713,745],{"style":93},[83,1715,1716,1718,1721,1723,1726,1729,1732,1734,1737,1740,1742,1745],{"class":85,"style":86},[83,1717,125],{"style":93},[83,1719,1720],{"style":93},"options",[83,1722,130],{"style":97},[83,1724,1725],{"style":116},"Omit",[83,1727,1728],{"style":89},"\u003C",[83,1730,1731],{"style":116},"Partial",[83,1733,1728],{"style":89},[83,1735,1736],{"style":116},"ResolvedOptions",[83,1738,1739],{"style":89},">",[83,1741,143],{"style":89},[83,1743,1744],{"style":107},"'override'",[83,1746,1739],{"style":89},[83,1748,1749],{"class":85,"style":86},[83,1750,160],{"style":93},[54,1752,870,1753,1755,1756,1759],{"as":56},[14,1754,1720],{}," merges shallowly over the plugin options, so an object option such as ",[14,1757,1758],{},"enum"," replaces the plugin's value whole. Give it every field.",[73,1761,1763],{"language":75,"filename":76,"code":1762,"class":78},"import { pluginTs } from '@kubb\u002Fplugin-ts'\n\npluginTs({\n override: [\n {\n type: 'tag',\n pattern: 'admin',\n options: {\n output: { path: 'admin' },\n enum: { type: 'enum', constCasing: 'camelCase', typeSuffix: 'Key', keyCasing: 'none' },\n },\n },\n ],\n})",[14,1764,1765,109,1779,109,1781,109,1787,109,1797,109,1802,109,1815,109,1828,109,1838,109,1860,109,1911,109,1919,109,1927,109,1935],{"class":81},[83,1766,1767,1769,1771,1773,1775,1777],{"class":85,"style":86},[83,1768,90],{"style":89},[83,1770,94],{"style":93},[83,1772,98],{"style":97},[83,1774,101],{"style":93},[83,1776,104],{"style":89},[83,1778,108],{"style":107},[83,1780],{"class":85,"style":86},[83,1782,1783,1785],{"class":85,"style":86},[83,1784,117],{"style":116},[83,1786,120],{"style":93},[83,1788,1789,1791,1793,1795],{"class":85,"style":86},[83,1790,125],{"style":93},[83,1792,1100],{"style":93},[83,1794,130],{"style":89},[83,1796,365],{"style":93},[83,1798,1799],{"class":85,"style":86},[83,1800,1801],{"style":93}," {",[83,1803,1804,1807,1809,1811,1813],{"class":85,"style":86},[83,1805,1806],{"style":93}," ",[83,1808,152],{"style":93},[83,1810,130],{"style":89},[83,1812,946],{"style":107},[83,1814,175],{"style":89},[83,1816,1817,1819,1821,1823,1826],{"class":85,"style":86},[83,1818,1806],{"style":89},[83,1820,1107],{"style":93},[83,1822,130],{"style":89},[83,1824,1825],{"style":107},"'admin'",[83,1827,175],{"style":89},[83,1829,1830,1832,1834,1836],{"class":85,"style":86},[83,1831,1806],{"style":89},[83,1833,1720],{"style":93},[83,1835,130],{"style":89},[83,1837,745],{"style":93},[83,1839,1840,1843,1845,1847,1849,1851,1853,1856,1858],{"class":85,"style":86},[83,1841,1842],{"style":93}," ",[83,1844,37],{"style":93},[83,1846,130],{"style":89},[83,1848,94],{"style":93},[83,1850,135],{"style":93},[83,1852,130],{"style":89},[83,1854,1855],{"style":107},"'admin' ",[83,1857,160],{"style":93},[83,1859,175],{"style":89},[83,1861,1862,1864,1866,1868,1870,1872,1874,1877,1879,1882,1884,1887,1889,1892,1894,1897,1899,1902,1904,1907,1909],{"class":85,"style":86},[83,1863,1842],{"style":89},[83,1865,1758],{"style":89},[83,1867,130],{"style":89},[83,1869,94],{"style":93},[83,1871,152],{"style":93},[83,1873,130],{"style":89},[83,1875,1876],{"style":107},"'enum'",[83,1878,143],{"style":89},[83,1880,1881],{"style":93},"constCasing",[83,1883,130],{"style":89},[83,1885,1886],{"style":107},"'camelCase'",[83,1888,143],{"style":89},[83,1890,1891],{"style":93},"typeSuffix",[83,1893,130],{"style":89},[83,1895,1896],{"style":107},"'Key'",[83,1898,143],{"style":89},[83,1900,1901],{"style":93},"keyCasing",[83,1903,130],{"style":89},[83,1905,1906],{"style":107},"'none' ",[83,1908,160],{"style":93},[83,1910,175],{"style":89},[83,1912,1913,1915,1917],{"class":85,"style":86},[83,1914,1806],{"style":89},[83,1916,160],{"style":93},[83,1918,175],{"style":89},[83,1920,1921,1923,1925],{"class":85,"style":86},[83,1922,370],{"style":89},[83,1924,160],{"style":93},[83,1926,175],{"style":89},[83,1928,1929,1931,1933],{"class":85,"style":86},[83,1930,125],{"style":89},[83,1932,450],{"style":93},[83,1934,175],{"style":89},[83,1936,1937],{"class":85,"style":86},[83,1938,180],{"style":93},[35,1940,1941],{"id":1941},"resolver",[39,1943,1944],{},[42,1945,1947],{"type":1946},"ResolverPatch\u003CResolver>","Changes how the plugin names generated files and symbols. Members you leave out keep the plugin's behavior. Default: the plugin's resolver.",[10,1949,1950,1951,49,1954,1956,1957,1960,1961,1964],{},"Every resolver has these members. A plugin's options page lists its own, such as ",[14,1952,1953],{},"param",[14,1955,52],{},". In a method, ",[14,1958,1959],{},"this"," is the full resolver, so ",[14,1962,1963],{},"this.default.name(name)"," reuses the built-in casing.",[73,1966,1969],{"language":75,"filename":1967,"code":1968,"class":78},"Shared members","type ResolverPatch = {\n name?(name: string): string \u002F\u002F the identifier for a name\n file?: {\n baseName?(params: { name: string; extname: string }): string \u002F\u002F the file name, extension included\n path?(params: { baseName: string; output: Output }): string \u002F\u002F the full path, which skips output.path and group\n }\n imports?(options: ResolveImportsOptions): Array\u003CImportNode> \u002F\u002F the imports for the $ref schemas a node uses\n}",[14,1970,1971,109,1982,109,2008,109,2021,109,2062,109,2102,109,2108,109,2144],{"class":81},[83,1972,1973,1975,1978,1980],{"class":85,"style":86},[83,1974,1276],{"style":89},[83,1976,1977],{"style":116},"ResolverPatch ",[83,1979,1706],{"style":89},[83,1981,745],{"style":93},[83,1983,1984,1986,1988,1991,1993,1995,1997,1999,2001,2003,2005],{"class":85,"style":86},[83,1985,125],{"style":93},[83,1987,1035],{"style":97},[83,1989,1990],{"style":89},"?",[83,1992,769],{"style":93},[83,1994,1035],{"style":97},[83,1996,130],{"style":97},[83,1998,189],{"style":116},[83,2000,811],{"style":93},[83,2002,130],{"style":97},[83,2004,1326],{"style":116},[83,2006,2007],{"style":396},"\u002F\u002F the identifier for a name",[83,2009,2010,2012,2015,2017,2019],{"class":85,"style":86},[83,2011,125],{"style":396},[83,2013,2014],{"style":97},"file",[83,2016,1990],{"style":97},[83,2018,130],{"style":89},[83,2020,745],{"style":93},[83,2022,2023,2025,2027,2029,2031,2034,2036,2038,2040,2042,2044,2046,2049,2051,2053,2055,2057,2059],{"class":85,"style":86},[83,2024,370],{"style":93},[83,2026,667],{"style":97},[83,2028,1990],{"style":89},[83,2030,769],{"style":93},[83,2032,2033],{"style":97},"params",[83,2035,130],{"style":89},[83,2037,94],{"style":93},[83,2039,1035],{"style":93},[83,2041,130],{"style":97},[83,2043,189],{"style":116},[83,2045,1319],{"style":89},[83,2047,2048],{"style":93},"extname",[83,2050,130],{"style":97},[83,2052,1326],{"style":116},[83,2054,180],{"style":93},[83,2056,130],{"style":97},[83,2058,1326],{"style":116},[83,2060,2061],{"style":396},"\u002F\u002F the file name, extension included",[83,2063,2064,2066,2068,2070,2072,2074,2076,2078,2080,2082,2084,2086,2088,2090,2093,2095,2097,2099],{"class":85,"style":86},[83,2065,370],{"style":396},[83,2067,135],{"style":97},[83,2069,1990],{"style":89},[83,2071,769],{"style":93},[83,2073,2033],{"style":97},[83,2075,130],{"style":89},[83,2077,94],{"style":93},[83,2079,667],{"style":93},[83,2081,130],{"style":97},[83,2083,189],{"style":116},[83,2085,1319],{"style":89},[83,2087,37],{"style":93},[83,2089,130],{"style":97},[83,2091,2092],{"style":116},"Output ",[83,2094,180],{"style":93},[83,2096,130],{"style":97},[83,2098,1326],{"style":116},[83,2100,2101],{"style":396},"\u002F\u002F the full path, which skips output.path and group",[83,2103,2104,2106],{"class":85,"style":86},[83,2105,125],{"style":396},[83,2107,160],{"style":93},[83,2109,2110,2112,2115,2117,2119,2121,2123,2126,2128,2130,2133,2135,2138,2141],{"class":85,"style":86},[83,2111,125],{"style":93},[83,2113,2114],{"style":97},"imports",[83,2116,1990],{"style":89},[83,2118,769],{"style":93},[83,2120,1720],{"style":97},[83,2122,130],{"style":97},[83,2124,2125],{"style":116},"ResolveImportsOptions",[83,2127,811],{"style":93},[83,2129,130],{"style":97},[83,2131,2132],{"style":116},"Array",[83,2134,1728],{"style":89},[83,2136,2137],{"style":116},"ImportNode",[83,2139,2140],{"style":89},"> ",[83,2142,2143],{"style":396},"\u002F\u002F the imports for the $ref schemas a node uses",[83,2145,2146],{"class":85,"style":86},[83,2147,160],{"style":93},[73,2149,2151],{"language":75,"filename":76,"code":2150,"class":78},"import { pluginTs } from '@kubb\u002Fplugin-ts'\n\npluginTs({\n resolver: {\n name(name) {\n return `${this.default.name(name)}Model` \u002F\u002F Pet becomes petModel\n },\n },\n})",[14,2152,2153,109,2167,109,2169,109,2175,109,2185,109,2198,109,2233,109,2241,109,2249],{"class":81},[83,2154,2155,2157,2159,2161,2163,2165],{"class":85,"style":86},[83,2156,90],{"style":89},[83,2158,94],{"style":93},[83,2160,98],{"style":97},[83,2162,101],{"style":93},[83,2164,104],{"style":89},[83,2166,108],{"style":107},[83,2168],{"class":85,"style":86},[83,2170,2171,2173],{"class":85,"style":86},[83,2172,117],{"style":116},[83,2174,120],{"style":93},[83,2176,2177,2179,2181,2183],{"class":85,"style":86},[83,2178,125],{"style":93},[83,2180,1941],{"style":93},[83,2182,130],{"style":89},[83,2184,745],{"style":93},[83,2186,2187,2189,2191,2193,2195],{"class":85,"style":86},[83,2188,370],{"style":93},[83,2190,1035],{"style":116},[83,2192,769],{"style":93},[83,2194,1035],{"style":97},[83,2196,2197],{"style":93},") {",[83,2199,2200,2202,2205,2207,2209,2211,2213,2215,2217,2219,2221,2223,2225,2227,2230],{"class":85,"style":86},[83,2201,1806],{"style":93},[83,2203,2204],{"style":89},"return ",[83,2206,1050],{"style":107},[83,2208,1053],{"style":97},[83,2210,1959],{"style":97},[83,2212,33],{"style":89},[83,2214,950],{"style":93},[83,2216,33],{"style":89},[83,2218,1035],{"style":116},[83,2220,769],{"style":93},[83,2222,1035],{"style":97},[83,2224,811],{"style":93},[83,2226,160],{"style":97},[83,2228,2229],{"style":107},"Model` ",[83,2231,2232],{"style":396},"\u002F\u002F Pet becomes petModel",[83,2234,2235,2237,2239],{"class":85,"style":86},[83,2236,370],{"style":396},[83,2238,160],{"style":93},[83,2240,175],{"style":89},[83,2242,2243,2245,2247],{"class":85,"style":86},[83,2244,125],{"style":89},[83,2246,160],{"style":93},[83,2248,175],{"style":89},[83,2250,2251],{"class":85,"style":86},[83,2252,180],{"style":93},[10,2254,497,2255,2259],{},[19,2256,2258],{"href":2257},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Fcustomize#resolvers","Resolvers"," for how a patch layers over the default.",[35,2261,2262],{"id":2262},"macros",[39,2264,2265],{},[42,2266,2268,2269,33],{"type":2267},"Array\u003CMacro>","Rewrite AST nodes before the plugin prints them, without forking its templates. Default: ",[14,2270,1530],{},[10,2272,2273,2274,143,2277,512,2280,2283],{},"Macros run in order, each on the previous output. ",[14,2275,2276],{},"@kubb\u002Fplugin-fetch",[14,2278,2279],{},"@kubb\u002Fplugin-axios",[14,2281,2282],{},"@kubb\u002Fplugin-client"," run their built-in macros first.",[10,2285,2286,2287,143,2292,512,2296,2300,2301,2304],{},"Macros run before ",[19,2288,2290],{"href":2289},"#include",[14,2291,1074],{},[19,2293,2294],{"href":1091},[14,2295,1094],{},[19,2297,2298],{"href":1097},[14,2299,1100],{}," match, so a filter sees the rewritten node. In the example below, ",[14,2302,2303],{},"include: [{ type: 'tag', pattern: '^untagged$' }]"," keeps the untagged operations and the schemas they use.",[73,2306,2308],{"language":75,"filename":76,"code":2307,"class":78},"import { defineMacro } from 'kubb\u002Fkit'\nimport { pluginTs } from '@kubb\u002Fplugin-ts'\n\nconst macroUntagged = defineMacro({\n name: 'untagged',\n operation(node) {\n return node.tags?.length ? undefined : { ...node, tags: ['untagged'] }\n },\n})\n\npluginTs({ macros: [macroUntagged], include: [{ type: 'tag', pattern: '^untagged$' }] })",[14,2309,2310,109,2326,109,2340,109,2342,109,2357,109,2370,109,2384,109,2430,109,2437,109,2441,109,2443],{"class":81},[83,2311,2312,2314,2316,2319,2321,2323],{"class":85,"style":86},[83,2313,90],{"style":89},[83,2315,94],{"style":93},[83,2317,2318],{"style":97},"defineMacro ",[83,2320,101],{"style":93},[83,2322,104],{"style":89},[83,2324,2325],{"style":107},"'kubb\u002Fkit'",[83,2327,2328,2330,2332,2334,2336,2338],{"class":85,"style":86},[83,2329,90],{"style":89},[83,2331,94],{"style":93},[83,2333,98],{"style":97},[83,2335,101],{"style":93},[83,2337,104],{"style":89},[83,2339,108],{"style":107},[83,2341],{"class":85,"style":86},[83,2343,2344,2347,2350,2352,2355],{"class":85,"style":86},[83,2345,2346],{"style":89},"const ",[83,2348,2349],{"style":97},"macroUntagged ",[83,2351,1706],{"style":89},[83,2353,2354],{"style":116},"defineMacro",[83,2356,120],{"style":93},[83,2358,2359,2361,2363,2365,2368],{"class":85,"style":86},[83,2360,125],{"style":93},[83,2362,1035],{"style":93},[83,2364,130],{"style":89},[83,2366,2367],{"style":107},"'untagged'",[83,2369,175],{"style":89},[83,2371,2372,2374,2377,2379,2382],{"class":85,"style":86},[83,2373,125],{"style":89},[83,2375,2376],{"style":116},"operation",[83,2378,769],{"style":93},[83,2380,2381],{"style":97},"node",[83,2383,2197],{"style":93},[83,2385,2386,2388,2390,2392,2394,2397,2400,2403,2405,2408,2410,2412,2415,2417,2419,2421,2423,2425,2427],{"class":85,"style":86},[83,2387,370],{"style":93},[83,2389,2204],{"style":89},[83,2391,2381],{"style":97},[83,2393,33],{"style":89},[83,2395,2396],{"style":93},"tags",[83,2398,2399],{"style":89},"?.",[83,2401,2402],{"style":93},"length ",[83,2404,800],{"style":89},[83,2406,2407],{"style":93},"undefined ",[83,2409,130],{"style":89},[83,2411,94],{"style":93},[83,2413,2414],{"style":89},"...",[83,2416,2381],{"style":97},[83,2418,143],{"style":89},[83,2420,2396],{"style":93},[83,2422,130],{"style":89},[83,2424,365],{"style":93},[83,2426,2367],{"style":107},[83,2428,2429],{"style":93},"] }",[83,2431,2432,2435],{"class":85,"style":86},[83,2433,2434],{"style":93}," }",[83,2436,175],{"style":89},[83,2438,2439],{"class":85,"style":86},[83,2440,180],{"style":93},[83,2442],{"class":85,"style":86},[83,2444,2445,2447,2449,2451,2453,2455,2458,2460,2462,2464,2466,2469,2471,2473,2475,2477,2479,2481,2484],{"class":85,"style":86},[83,2446,117],{"style":116},[83,2448,375],{"style":93},[83,2450,2262],{"style":93},[83,2452,130],{"style":89},[83,2454,365],{"style":93},[83,2456,2457],{"style":97},"macroUntagged",[83,2459,450],{"style":93},[83,2461,143],{"style":89},[83,2463,1074],{"style":93},[83,2465,130],{"style":89},[83,2467,2468],{"style":93},"[{ ",[83,2470,152],{"style":93},[83,2472,130],{"style":89},[83,2474,946],{"style":107},[83,2476,143],{"style":89},[83,2478,1107],{"style":93},[83,2480,130],{"style":89},[83,2482,2483],{"style":107},"'^untagged$' ",[83,2485,2486],{"style":93},"}] })",[10,2488,497,2489,2493,2494,2500],{},[19,2490,2492],{"href":2491},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Fcustomize#macros","Macros"," for a walkthrough, and ",[19,2495,2497],{"href":2496},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fast#macros",[14,2498,2499],{},"ast.macro"," for callbacks and built-in macros.",[35,2502,2504],{"id":2503},"less-common-cases","Less common cases",[182,2506,1263],{"id":2507},"filters",[10,2509,2510,2511,2513,2514,2516,2517,2519],{},"When an ",[14,2512,1074],{}," or ",[14,2515,1094],{}," mixes operation and ",[14,2518,1111],{}," entries, schemas follow their own rules.",[2521,2522,2523,2530,2541,2548,2558,2566],"ul",{},[2524,2525,2526,2527,2529],"li",{},"Only ",[14,2528,1111],{}," entries filter schemas by name.",[2524,2531,1533,2532,2534,2535,2537,2538,2540],{},[14,2533,1111],{}," entry in ",[14,2536,1074],{}," also keeps every schema the matched schemas reference, directly or through other schemas, so the generated imports resolve. Add a schema to ",[14,2539,1094],{}," to leave it out.",[2524,2542,1533,2543,2534,2545,2547],{},[14,2544,1111],{},[14,2546,1094],{}," also drops the schemas that only the excluded schemas reference. A schema that a kept schema or operation still uses stays.",[2524,2549,1533,2550,2534,2552,2554,2555,2557],{},[14,2551,1111],{},[14,2553,1100],{}," also applies to the schemas the matched schemas reference, unless they match an ",[14,2556,1100],{}," entry themselves.",[2524,2559,57,2560,2562,2563,2565],{},[14,2561,1074],{}," with operation entries and no ",[14,2564,1111],{}," entry keeps only the schemas those operations use, also indirectly.",[2524,2567,57,2568,2570,2571,2573],{},[14,2569,1074],{}," with only ",[14,2572,1111],{}," entries generates no operations.",[10,2575,2576,2577,2581,2582,2584],{},"A matching ",[19,2578,2579],{"href":1097},[14,2580,1100],{}," entry applies its ",[14,2583,1720],{}," like this:",[2521,2586,2587,2594],{},[2524,2588,2589,2591,2592,33],{},[14,2590,1720],{}," takes any plugin option except ",[14,2593,1100],{},[2524,2595,57,2596,2598,2599,2602,2603,33],{},[14,2597,37],{}," without ",[14,2600,2601],{},"mode"," reads it from ",[14,2604,32],{},[182,2606,955],{"id":2607},"group-folders",[10,2609,2610,2611,2616,2617,2620,2621,33],{},"With ",[19,2612,2614],{"href":2613},"#group-type",[14,2615,232],{},", the resolver's ",[14,2618,2619],{},"groupDir(group, value)"," picks each file's folder. See ",[19,2622,2624],{"href":2623},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fresolvers#auto-injected-resolver-defaults","Built-in members",[632,2626,2627,2637],{},[635,2628,2629],{},[638,2630,2631,2634],{},[641,2632,2633],{},"Group",[641,2635,2636],{},"Folder",[648,2638,2639,2654,2670],{},[638,2640,2641,2646],{},[653,2642,2643,2644],{},"A custom ",[14,2645,974],{},[653,2647,2648,2649,2651,2652,33],{},"What ",[14,2650,974],{}," returns. It wins over ",[14,2653,152],{},[638,2655,2656,2661],{},[653,2657,2658],{},[14,2659,2660],{},"type: 'tag'",[653,2662,2663,2664,2666,2667],{},"The camelCased tag, inside the folders of its OpenAPI 3.2 ",[14,2665,959],{}," tags, such as ",[14,2668,2669],{},"animals\u002Fcats\u002F",[638,2671,2672,2677],{},[653,2673,2674],{},[14,2675,2676],{},"type: 'path'",[653,2678,2679],{},"The first path segment",{"title":870,"searchDepth":2681,"depth":2681,"links":2682},5,[2683,2692,2696,2700,2701,2702,2703,2704],{"id":37,"depth":2684,"text":37,"children":2685},2,[2686,2688,2689,2690,2691],{"id":184,"depth":2687,"text":32},3,{"id":200,"depth":2687,"text":201},{"id":459,"depth":2687,"text":24},{"id":591,"depth":2687,"text":592},{"id":828,"depth":2687,"text":829},{"id":232,"depth":2684,"text":232,"children":2693},[2694,2695],{"id":932,"depth":2687,"text":933},{"id":973,"depth":2687,"text":974},{"id":1074,"depth":2684,"text":1074,"children":2697},[2698,2699],{"id":1083,"depth":2687,"text":1084},{"id":1508,"depth":2687,"text":1509},{"id":1094,"depth":2684,"text":1094},{"id":1100,"depth":2684,"text":1100},{"id":1941,"depth":2684,"text":1941},{"id":2262,"depth":2684,"text":2262},{"id":2503,"depth":2684,"text":2504,"children":2705},[2706,2707],{"id":2507,"depth":2687,"text":1263},{"id":2607,"depth":2687,"text":955},"The output, group, include, exclude, override, resolver, and macros options every Kubb plugin that writes files accepts, with types, defaults, and precedence.","md",{"layout":2711,"title":5,"description":2708,"outline":2712,"order":2684,"navigation":2713},"doc",[2684,2687],{"title":5,"icon":2714},"i-iconoir-settings",{"layout":2711,"outline":2716},[2684,2687],{"title":5,"icon":2714},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options",{"title":5,"description":2708},{"loc":2718},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options.md","docs\u002F5.x\u002Freference\u002Fplugin-options","bZPnUIGPaLCb8pCxdhH1jB31wK9cniBlsPxDmqTOZw8",1795989034368,"2e8b4c62-5b8c-4587-97c0-530d08a9bd53"]