[{"data":1,"prerenderedAt":2668,"buildId":2669},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options":3},{"id":4,"title":5,"body":6,"description":2652,"extension":2653,"frontmatter":2654,"heading":5,"meta":2659,"navigation":2661,"order":2628,"path":2662,"seo":2663,"sitemap":2664,"source":2665,"stem":2666,"__hash__":2667},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options.md","Shared plugin options",{"type":7,"value":8,"toc":2624},"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,1239,1255,1399,1497,1501,1505,1507,1522,1530,1661,1663,1674,1681,1742,1751,1930,1933,1939,1956,2139,2244,2251,2254,2262,2275,2431,2445,2449,2452,2464,2518,2529,2549,2552,2569],[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],{"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.",[10,1240,1241,1242,1244,1245,1247,1248,1250,1251,33],{},"Without a ",[14,1243,1111],{}," entry, ",[14,1246,1074],{}," keeps only the schemas its operations use. A ",[14,1249,1111],{}," entry also keeps the schemas the matched schemas reference. See ",[19,1252,1254],{"href":1253},"#filters","Filters",[73,1256,1259],{"language":75,"filename":1257,"code":1258,"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,1260,1261,109,1274,109,1325,109,1355],{"class":81},[83,1262,1263,1265,1268,1271],{"class":85,"style":86},[83,1264,310],{"style":89},[83,1266,1267],{"style":89},"type ",[83,1269,1270],{"style":116},"Include ",[83,1272,1273],{"style":89},"=",[83,1275,1276,1279,1281,1283,1285,1287,1290,1293,1295,1298,1300,1303,1305,1308,1311,1313,1315,1318,1320,1323],{"class":85,"style":86},[83,1277,1278],{"style":89}," | ",[83,1280,94],{"style":93},[83,1282,152],{"style":93},[83,1284,130],{"style":89},[83,1286,436],{"style":107},[83,1288,1289],{"style":89},"| ",[83,1291,1292],{"style":107},"'operationId' ",[83,1294,1289],{"style":89},[83,1296,1297],{"style":107},"'path' ",[83,1299,1289],{"style":89},[83,1301,1302],{"style":107},"'contentType' ",[83,1304,1289],{"style":89},[83,1306,1307],{"style":107},"'schemaName'",[83,1309,1310],{"style":89},"; ",[83,1312,1107],{"style":93},[83,1314,130],{"style":97},[83,1316,1317],{"style":116},"string ",[83,1319,1289],{"style":89},[83,1321,1322],{"style":116},"RegExp ",[83,1324,160],{"style":93},[83,1326,1327,1329,1331,1333,1335,1337,1340,1342,1344,1346,1349,1351,1353],{"class":85,"style":86},[83,1328,125],{"style":93},[83,1330,1289],{"style":89},[83,1332,94],{"style":93},[83,1334,152],{"style":93},[83,1336,130],{"style":89},[83,1338,1339],{"style":107},"'method'",[83,1341,1310],{"style":89},[83,1343,1107],{"style":93},[83,1345,130],{"style":97},[83,1347,1348],{"style":116},"HttpMethod ",[83,1350,1289],{"style":89},[83,1352,1322],{"style":116},[83,1354,160],{"style":93},[83,1356,1357,1359,1361,1363,1365,1367,1370,1372,1374,1376,1379,1381,1383,1385,1387,1389,1391,1394,1397],{"class":85,"style":86},[83,1358,125],{"style":93},[83,1360,1289],{"style":89},[83,1362,94],{"style":93},[83,1364,152],{"style":93},[83,1366,130],{"style":89},[83,1368,1369],{"style":107},"'extension'",[83,1371,1310],{"style":89},[83,1373,1212],{"style":93},[83,1375,130],{"style":89},[83,1377,1378],{"style":107},"`x-",[83,1380,1053],{"style":97},[83,1382,189],{"style":97},[83,1384,160],{"style":97},[83,1386,1050],{"style":107},[83,1388,1310],{"style":89},[83,1390,1216],{"style":93},[83,1392,1393],{"style":97},"?: ",[83,1395,1396],{"style":116},"unknown ",[83,1398,160],{"style":93},[73,1400,1402],{"language":75,"filename":76,"code":1401,"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,1403,1404,109,1418,109,1420,109,1426,109,1436,109,1460,109,1485,109,1493],{"class":81},[83,1405,1406,1408,1410,1412,1414,1416],{"class":85,"style":86},[83,1407,90],{"style":89},[83,1409,94],{"style":93},[83,1411,98],{"style":97},[83,1413,101],{"style":93},[83,1415,104],{"style":89},[83,1417,108],{"style":107},[83,1419],{"class":85,"style":86},[83,1421,1422,1424],{"class":85,"style":86},[83,1423,117],{"style":116},[83,1425,120],{"style":93},[83,1427,1428,1430,1432,1434],{"class":85,"style":86},[83,1429,125],{"style":93},[83,1431,1074],{"style":93},[83,1433,130],{"style":89},[83,1435,365],{"style":93},[83,1437,1438,1441,1443,1445,1447,1449,1451,1453,1456,1458],{"class":85,"style":86},[83,1439,1440],{"style":93}," { ",[83,1442,152],{"style":93},[83,1444,130],{"style":89},[83,1446,946],{"style":107},[83,1448,143],{"style":89},[83,1450,1107],{"style":93},[83,1452,130],{"style":89},[83,1454,1455],{"style":107},"'pet' ",[83,1457,160],{"style":93},[83,1459,175],{"style":89},[83,1461,1462,1464,1466,1468,1470,1472,1474,1476,1478,1481,1483],{"class":85,"style":86},[83,1463,370],{"style":89},[83,1465,94],{"style":93},[83,1467,152],{"style":93},[83,1469,130],{"style":89},[83,1471,963],{"style":107},[83,1473,143],{"style":89},[83,1475,1107],{"style":93},[83,1477,130],{"style":89},[83,1479,1480],{"style":107},"\u002F^\\\u002Fstore\u002F ",[83,1482,160],{"style":93},[83,1484,175],{"style":89},[83,1486,1487,1489,1491],{"class":85,"style":86},[83,1488,125],{"style":89},[83,1490,450],{"style":93},[83,1492,175],{"style":89},[83,1494,1495],{"class":85,"style":86},[83,1496,180],{"style":93},[182,1498,1500],{"id":1499},"precedence","Precedence",[1502,1503],"mermaid",{"svg":1504},"\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,1506,1094],{"id":1094},[39,1508,1509],{},[42,1510,1512,1513,512,1516,1518,1519,33],{"type":1511},"Array\u003CExclude>","Skips every operation or schema that matches an entry. Entries match as in ",[19,1514,1084],{"href":1515},"#how-filters-match",[14,1517,1094],{}," wins. Default: ",[14,1520,1521],{},"[]",[10,1523,1524,1525,1527,1528,33],{},"A ",[14,1526,1111],{}," entry also drops the schemas only the excluded schemas reference. See ",[19,1529,1254],{"href":1253},[73,1531,1533],{"language":75,"filename":76,"code":1532,"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,1534,1535,109,1549,109,1551,109,1557,109,1567,109,1590,109,1616,109,1649,109,1657],{"class":81},[83,1536,1537,1539,1541,1543,1545,1547],{"class":85,"style":86},[83,1538,90],{"style":89},[83,1540,94],{"style":93},[83,1542,98],{"style":97},[83,1544,101],{"style":93},[83,1546,104],{"style":89},[83,1548,108],{"style":107},[83,1550],{"class":85,"style":86},[83,1552,1553,1555],{"class":85,"style":86},[83,1554,117],{"style":116},[83,1556,120],{"style":93},[83,1558,1559,1561,1563,1565],{"class":85,"style":86},[83,1560,125],{"style":93},[83,1562,1094],{"style":93},[83,1564,130],{"style":89},[83,1566,365],{"style":93},[83,1568,1569,1571,1573,1575,1577,1579,1581,1583,1586,1588],{"class":85,"style":86},[83,1570,1440],{"style":93},[83,1572,152],{"style":93},[83,1574,130],{"style":89},[83,1576,946],{"style":107},[83,1578,143],{"style":89},[83,1580,1107],{"style":93},[83,1582,130],{"style":89},[83,1584,1585],{"style":107},"'internal' ",[83,1587,160],{"style":93},[83,1589,175],{"style":89},[83,1591,1592,1594,1596,1598,1600,1603,1605,1607,1609,1612,1614],{"class":85,"style":86},[83,1593,370],{"style":89},[83,1595,94],{"style":93},[83,1597,152],{"style":93},[83,1599,130],{"style":89},[83,1601,1602],{"style":107},"'operationId'",[83,1604,143],{"style":89},[83,1606,1107],{"style":93},[83,1608,130],{"style":89},[83,1610,1611],{"style":107},"\u002F^deprecated_\u002F ",[83,1613,160],{"style":93},[83,1615,175],{"style":89},[83,1617,1618,1620,1622,1624,1626,1628,1630,1632,1634,1637,1639,1641,1643,1645,1647],{"class":85,"style":86},[83,1619,370],{"style":89},[83,1621,94],{"style":93},[83,1623,152],{"style":93},[83,1625,130],{"style":89},[83,1627,1369],{"style":107},[83,1629,143],{"style":89},[83,1631,1212],{"style":93},[83,1633,130],{"style":89},[83,1635,1636],{"style":107},"'x-internal'",[83,1638,143],{"style":89},[83,1640,1216],{"style":93},[83,1642,130],{"style":89},[83,1644,585],{"style":93},[83,1646,160],{"style":93},[83,1648,175],{"style":89},[83,1650,1651,1653,1655],{"class":85,"style":86},[83,1652,125],{"style":89},[83,1654,450],{"style":93},[83,1656,175],{"style":89},[83,1658,1659],{"class":85,"style":86},[83,1660,180],{"style":93},[35,1662,1100],{"id":1100},[39,1664,1665],{},[42,1666,1668,1669,1671,1672,33],{"type":1667},"Array\u003COverride>","Gives matching operations or schemas other plugin options. Entries match as in ",[19,1670,1084],{"href":1515},", top to bottom. Only the first match applies. Default: ",[14,1673,1521],{},[10,1675,1524,1676,1678,1679,33],{},[14,1677,1111],{}," entry also applies to the schemas the matched schemas reference. See ",[19,1680,1254],{"href":1253},[73,1682,1684],{"language":75,"filename":1257,"code":1683,"class":78},"export type Override = Include & {\n options: Omit\u003CPartial\u003CResolvedOptions>, 'override'>\n}",[14,1685,1686,109,1705,109,1738],{"class":81},[83,1687,1688,1690,1692,1695,1698,1700,1703],{"class":85,"style":86},[83,1689,310],{"style":89},[83,1691,1267],{"style":89},[83,1693,1694],{"style":116},"Override ",[83,1696,1697],{"style":89},"= ",[83,1699,1270],{"style":116},[83,1701,1702],{"style":89},"& ",[83,1704,745],{"style":93},[83,1706,1707,1709,1712,1714,1717,1720,1723,1725,1728,1731,1733,1736],{"class":85,"style":86},[83,1708,125],{"style":93},[83,1710,1711],{"style":93},"options",[83,1713,130],{"style":97},[83,1715,1716],{"style":116},"Omit",[83,1718,1719],{"style":89},"\u003C",[83,1721,1722],{"style":116},"Partial",[83,1724,1719],{"style":89},[83,1726,1727],{"style":116},"ResolvedOptions",[83,1729,1730],{"style":89},">",[83,1732,143],{"style":89},[83,1734,1735],{"style":107},"'override'",[83,1737,1730],{"style":89},[83,1739,1740],{"class":85,"style":86},[83,1741,160],{"style":93},[54,1743,870,1744,1746,1747,1750],{"as":56},[14,1745,1711],{}," merges shallowly over the plugin options, so an object option such as ",[14,1748,1749],{},"enum"," replaces the plugin's value whole. Give it every field.",[73,1752,1754],{"language":75,"filename":76,"code":1753,"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,1755,1756,109,1770,109,1772,109,1778,109,1788,109,1793,109,1806,109,1819,109,1829,109,1851,109,1902,109,1910,109,1918,109,1926],{"class":81},[83,1757,1758,1760,1762,1764,1766,1768],{"class":85,"style":86},[83,1759,90],{"style":89},[83,1761,94],{"style":93},[83,1763,98],{"style":97},[83,1765,101],{"style":93},[83,1767,104],{"style":89},[83,1769,108],{"style":107},[83,1771],{"class":85,"style":86},[83,1773,1774,1776],{"class":85,"style":86},[83,1775,117],{"style":116},[83,1777,120],{"style":93},[83,1779,1780,1782,1784,1786],{"class":85,"style":86},[83,1781,125],{"style":93},[83,1783,1100],{"style":93},[83,1785,130],{"style":89},[83,1787,365],{"style":93},[83,1789,1790],{"class":85,"style":86},[83,1791,1792],{"style":93}," {",[83,1794,1795,1798,1800,1802,1804],{"class":85,"style":86},[83,1796,1797],{"style":93}," ",[83,1799,152],{"style":93},[83,1801,130],{"style":89},[83,1803,946],{"style":107},[83,1805,175],{"style":89},[83,1807,1808,1810,1812,1814,1817],{"class":85,"style":86},[83,1809,1797],{"style":89},[83,1811,1107],{"style":93},[83,1813,130],{"style":89},[83,1815,1816],{"style":107},"'admin'",[83,1818,175],{"style":89},[83,1820,1821,1823,1825,1827],{"class":85,"style":86},[83,1822,1797],{"style":89},[83,1824,1711],{"style":93},[83,1826,130],{"style":89},[83,1828,745],{"style":93},[83,1830,1831,1834,1836,1838,1840,1842,1844,1847,1849],{"class":85,"style":86},[83,1832,1833],{"style":93}," ",[83,1835,37],{"style":93},[83,1837,130],{"style":89},[83,1839,94],{"style":93},[83,1841,135],{"style":93},[83,1843,130],{"style":89},[83,1845,1846],{"style":107},"'admin' ",[83,1848,160],{"style":93},[83,1850,175],{"style":89},[83,1852,1853,1855,1857,1859,1861,1863,1865,1868,1870,1873,1875,1878,1880,1883,1885,1888,1890,1893,1895,1898,1900],{"class":85,"style":86},[83,1854,1833],{"style":89},[83,1856,1749],{"style":89},[83,1858,130],{"style":89},[83,1860,94],{"style":93},[83,1862,152],{"style":93},[83,1864,130],{"style":89},[83,1866,1867],{"style":107},"'enum'",[83,1869,143],{"style":89},[83,1871,1872],{"style":93},"constCasing",[83,1874,130],{"style":89},[83,1876,1877],{"style":107},"'camelCase'",[83,1879,143],{"style":89},[83,1881,1882],{"style":93},"typeSuffix",[83,1884,130],{"style":89},[83,1886,1887],{"style":107},"'Key'",[83,1889,143],{"style":89},[83,1891,1892],{"style":93},"keyCasing",[83,1894,130],{"style":89},[83,1896,1897],{"style":107},"'none' ",[83,1899,160],{"style":93},[83,1901,175],{"style":89},[83,1903,1904,1906,1908],{"class":85,"style":86},[83,1905,1797],{"style":89},[83,1907,160],{"style":93},[83,1909,175],{"style":89},[83,1911,1912,1914,1916],{"class":85,"style":86},[83,1913,370],{"style":89},[83,1915,160],{"style":93},[83,1917,175],{"style":89},[83,1919,1920,1922,1924],{"class":85,"style":86},[83,1921,125],{"style":89},[83,1923,450],{"style":93},[83,1925,175],{"style":89},[83,1927,1928],{"class":85,"style":86},[83,1929,180],{"style":93},[35,1931,1932],{"id":1932},"resolver",[39,1934,1935],{},[42,1936,1938],{"type":1937},"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,1940,1941,1942,49,1945,1947,1948,1951,1952,1955],{},"Every resolver has these members. A plugin's options page lists its own, such as ",[14,1943,1944],{},"param",[14,1946,52],{},". In a method, ",[14,1949,1950],{},"this"," is the full resolver, so ",[14,1953,1954],{},"this.default.name(name)"," reuses the built-in casing.",[73,1957,1960],{"language":75,"filename":1958,"code":1959,"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,1961,1962,109,1973,109,1999,109,2012,109,2053,109,2093,109,2099,109,2135],{"class":81},[83,1963,1964,1966,1969,1971],{"class":85,"style":86},[83,1965,1267],{"style":89},[83,1967,1968],{"style":116},"ResolverPatch ",[83,1970,1697],{"style":89},[83,1972,745],{"style":93},[83,1974,1975,1977,1979,1982,1984,1986,1988,1990,1992,1994,1996],{"class":85,"style":86},[83,1976,125],{"style":93},[83,1978,1035],{"style":97},[83,1980,1981],{"style":89},"?",[83,1983,769],{"style":93},[83,1985,1035],{"style":97},[83,1987,130],{"style":97},[83,1989,189],{"style":116},[83,1991,811],{"style":93},[83,1993,130],{"style":97},[83,1995,1317],{"style":116},[83,1997,1998],{"style":396},"\u002F\u002F the identifier for a name",[83,2000,2001,2003,2006,2008,2010],{"class":85,"style":86},[83,2002,125],{"style":396},[83,2004,2005],{"style":97},"file",[83,2007,1981],{"style":97},[83,2009,130],{"style":89},[83,2011,745],{"style":93},[83,2013,2014,2016,2018,2020,2022,2025,2027,2029,2031,2033,2035,2037,2040,2042,2044,2046,2048,2050],{"class":85,"style":86},[83,2015,370],{"style":93},[83,2017,667],{"style":97},[83,2019,1981],{"style":89},[83,2021,769],{"style":93},[83,2023,2024],{"style":97},"params",[83,2026,130],{"style":89},[83,2028,94],{"style":93},[83,2030,1035],{"style":93},[83,2032,130],{"style":97},[83,2034,189],{"style":116},[83,2036,1310],{"style":89},[83,2038,2039],{"style":93},"extname",[83,2041,130],{"style":97},[83,2043,1317],{"style":116},[83,2045,180],{"style":93},[83,2047,130],{"style":97},[83,2049,1317],{"style":116},[83,2051,2052],{"style":396},"\u002F\u002F the file name, extension included",[83,2054,2055,2057,2059,2061,2063,2065,2067,2069,2071,2073,2075,2077,2079,2081,2084,2086,2088,2090],{"class":85,"style":86},[83,2056,370],{"style":396},[83,2058,135],{"style":97},[83,2060,1981],{"style":89},[83,2062,769],{"style":93},[83,2064,2024],{"style":97},[83,2066,130],{"style":89},[83,2068,94],{"style":93},[83,2070,667],{"style":93},[83,2072,130],{"style":97},[83,2074,189],{"style":116},[83,2076,1310],{"style":89},[83,2078,37],{"style":93},[83,2080,130],{"style":97},[83,2082,2083],{"style":116},"Output ",[83,2085,180],{"style":93},[83,2087,130],{"style":97},[83,2089,1317],{"style":116},[83,2091,2092],{"style":396},"\u002F\u002F the full path, which skips output.path and group",[83,2094,2095,2097],{"class":85,"style":86},[83,2096,125],{"style":396},[83,2098,160],{"style":93},[83,2100,2101,2103,2106,2108,2110,2112,2114,2117,2119,2121,2124,2126,2129,2132],{"class":85,"style":86},[83,2102,125],{"style":93},[83,2104,2105],{"style":97},"imports",[83,2107,1981],{"style":89},[83,2109,769],{"style":93},[83,2111,1711],{"style":97},[83,2113,130],{"style":97},[83,2115,2116],{"style":116},"ResolveImportsOptions",[83,2118,811],{"style":93},[83,2120,130],{"style":97},[83,2122,2123],{"style":116},"Array",[83,2125,1719],{"style":89},[83,2127,2128],{"style":116},"ImportNode",[83,2130,2131],{"style":89},"> ",[83,2133,2134],{"style":396},"\u002F\u002F the imports for the $ref schemas a node uses",[83,2136,2137],{"class":85,"style":86},[83,2138,160],{"style":93},[73,2140,2142],{"language":75,"filename":76,"code":2141,"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,2143,2144,109,2158,109,2160,109,2166,109,2176,109,2189,109,2224,109,2232,109,2240],{"class":81},[83,2145,2146,2148,2150,2152,2154,2156],{"class":85,"style":86},[83,2147,90],{"style":89},[83,2149,94],{"style":93},[83,2151,98],{"style":97},[83,2153,101],{"style":93},[83,2155,104],{"style":89},[83,2157,108],{"style":107},[83,2159],{"class":85,"style":86},[83,2161,2162,2164],{"class":85,"style":86},[83,2163,117],{"style":116},[83,2165,120],{"style":93},[83,2167,2168,2170,2172,2174],{"class":85,"style":86},[83,2169,125],{"style":93},[83,2171,1932],{"style":93},[83,2173,130],{"style":89},[83,2175,745],{"style":93},[83,2177,2178,2180,2182,2184,2186],{"class":85,"style":86},[83,2179,370],{"style":93},[83,2181,1035],{"style":116},[83,2183,769],{"style":93},[83,2185,1035],{"style":97},[83,2187,2188],{"style":93},") {",[83,2190,2191,2193,2196,2198,2200,2202,2204,2206,2208,2210,2212,2214,2216,2218,2221],{"class":85,"style":86},[83,2192,1797],{"style":93},[83,2194,2195],{"style":89},"return ",[83,2197,1050],{"style":107},[83,2199,1053],{"style":97},[83,2201,1950],{"style":97},[83,2203,33],{"style":89},[83,2205,950],{"style":93},[83,2207,33],{"style":89},[83,2209,1035],{"style":116},[83,2211,769],{"style":93},[83,2213,1035],{"style":97},[83,2215,811],{"style":93},[83,2217,160],{"style":97},[83,2219,2220],{"style":107},"Model` ",[83,2222,2223],{"style":396},"\u002F\u002F Pet becomes petModel",[83,2225,2226,2228,2230],{"class":85,"style":86},[83,2227,370],{"style":396},[83,2229,160],{"style":93},[83,2231,175],{"style":89},[83,2233,2234,2236,2238],{"class":85,"style":86},[83,2235,125],{"style":89},[83,2237,160],{"style":93},[83,2239,175],{"style":89},[83,2241,2242],{"class":85,"style":86},[83,2243,180],{"style":93},[10,2245,497,2246,2250],{},[19,2247,2249],{"href":2248},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Fcustomize#resolvers","Resolvers"," for how a patch layers over the default.",[35,2252,2253],{"id":2253},"macros",[39,2255,2256],{},[42,2257,2259,2260,33],{"type":2258},"Array\u003CMacro>","Rewrite AST nodes before the plugin prints them, without forking its templates. Default: ",[14,2261,1521],{},[10,2263,2264,2265,143,2268,512,2271,2274],{},"Macros run in order, each on the previous output. ",[14,2266,2267],{},"@kubb\u002Fplugin-fetch",[14,2269,2270],{},"@kubb\u002Fplugin-axios",[14,2272,2273],{},"@kubb\u002Fplugin-client"," run their built-in macros first.",[73,2276,2278],{"language":75,"filename":76,"code":2277,"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] })",[14,2279,2280,109,2296,109,2310,109,2312,109,2327,109,2340,109,2354,109,2400,109,2407,109,2411,109,2413],{"class":81},[83,2281,2282,2284,2286,2289,2291,2293],{"class":85,"style":86},[83,2283,90],{"style":89},[83,2285,94],{"style":93},[83,2287,2288],{"style":97},"defineMacro ",[83,2290,101],{"style":93},[83,2292,104],{"style":89},[83,2294,2295],{"style":107},"'kubb\u002Fkit'",[83,2297,2298,2300,2302,2304,2306,2308],{"class":85,"style":86},[83,2299,90],{"style":89},[83,2301,94],{"style":93},[83,2303,98],{"style":97},[83,2305,101],{"style":93},[83,2307,104],{"style":89},[83,2309,108],{"style":107},[83,2311],{"class":85,"style":86},[83,2313,2314,2317,2320,2322,2325],{"class":85,"style":86},[83,2315,2316],{"style":89},"const ",[83,2318,2319],{"style":97},"macroUntagged ",[83,2321,1697],{"style":89},[83,2323,2324],{"style":116},"defineMacro",[83,2326,120],{"style":93},[83,2328,2329,2331,2333,2335,2338],{"class":85,"style":86},[83,2330,125],{"style":93},[83,2332,1035],{"style":93},[83,2334,130],{"style":89},[83,2336,2337],{"style":107},"'untagged'",[83,2339,175],{"style":89},[83,2341,2342,2344,2347,2349,2352],{"class":85,"style":86},[83,2343,125],{"style":89},[83,2345,2346],{"style":116},"operation",[83,2348,769],{"style":93},[83,2350,2351],{"style":97},"node",[83,2353,2188],{"style":93},[83,2355,2356,2358,2360,2362,2364,2367,2370,2373,2375,2378,2380,2382,2385,2387,2389,2391,2393,2395,2397],{"class":85,"style":86},[83,2357,370],{"style":93},[83,2359,2195],{"style":89},[83,2361,2351],{"style":97},[83,2363,33],{"style":89},[83,2365,2366],{"style":93},"tags",[83,2368,2369],{"style":89},"?.",[83,2371,2372],{"style":93},"length ",[83,2374,800],{"style":89},[83,2376,2377],{"style":93},"undefined ",[83,2379,130],{"style":89},[83,2381,94],{"style":93},[83,2383,2384],{"style":89},"...",[83,2386,2351],{"style":97},[83,2388,143],{"style":89},[83,2390,2366],{"style":93},[83,2392,130],{"style":89},[83,2394,365],{"style":93},[83,2396,2337],{"style":107},[83,2398,2399],{"style":93},"] }",[83,2401,2402,2405],{"class":85,"style":86},[83,2403,2404],{"style":93}," }",[83,2406,175],{"style":89},[83,2408,2409],{"class":85,"style":86},[83,2410,180],{"style":93},[83,2412],{"class":85,"style":86},[83,2414,2415,2417,2419,2421,2423,2425,2428],{"class":85,"style":86},[83,2416,117],{"style":116},[83,2418,375],{"style":93},[83,2420,2253],{"style":93},[83,2422,130],{"style":89},[83,2424,365],{"style":93},[83,2426,2427],{"style":97},"macroUntagged",[83,2429,2430],{"style":93},"] })",[10,2432,497,2433,2437,2438,2444],{},[19,2434,2436],{"href":2435},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Fcustomize#macros","Macros"," for a walkthrough, and ",[19,2439,2441],{"href":2440},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fast#macros",[14,2442,2443],{},"ast.macro"," for callbacks and built-in macros.",[35,2446,2448],{"id":2447},"less-common-cases","Less common cases",[182,2450,1254],{"id":2451},"filters",[10,2453,2454,2455,2457,2458,2460,2461,2463],{},"When an ",[14,2456,1074],{}," or ",[14,2459,1094],{}," mixes operation and ",[14,2462,1111],{}," entries, schemas follow their own rules.",[2465,2466,2467,2474,2485,2492,2502,2510],"ul",{},[2468,2469,2470,2471,2473],"li",{},"Only ",[14,2472,1111],{}," entries filter schemas by name.",[2468,2475,1524,2476,2478,2479,2481,2482,2484],{},[14,2477,1111],{}," entry in ",[14,2480,1074],{}," also keeps every schema the matched schemas reference, directly or through other schemas, so the generated imports resolve. Add a schema to ",[14,2483,1094],{}," to leave it out.",[2468,2486,1524,2487,2478,2489,2491],{},[14,2488,1111],{},[14,2490,1094],{}," also drops the schemas that only the excluded schemas reference. A schema that a kept schema or operation still uses stays.",[2468,2493,1524,2494,2478,2496,2498,2499,2501],{},[14,2495,1111],{},[14,2497,1100],{}," also applies to the schemas the matched schemas reference, unless they match an ",[14,2500,1100],{}," entry themselves.",[2468,2503,57,2504,2506,2507,2509],{},[14,2505,1074],{}," with operation entries and no ",[14,2508,1111],{}," entry keeps only the schemas those operations use, also indirectly.",[2468,2511,57,2512,2514,2515,2517],{},[14,2513,1074],{}," with only ",[14,2516,1111],{}," entries generates no operations.",[10,2519,2520,2521,2525,2526,2528],{},"A matching ",[19,2522,2523],{"href":1097},[14,2524,1100],{}," entry applies its ",[14,2527,1711],{}," like this:",[2465,2530,2531,2538],{},[2468,2532,2533,2535,2536,33],{},[14,2534,1711],{}," takes any plugin option except ",[14,2537,1100],{},[2468,2539,57,2540,2542,2543,2546,2547,33],{},[14,2541,37],{}," without ",[14,2544,2545],{},"mode"," reads it from ",[14,2548,32],{},[182,2550,955],{"id":2551},"group-folders",[10,2553,2554,2555,2560,2561,2564,2565,33],{},"With ",[19,2556,2558],{"href":2557},"#group-type",[14,2559,232],{},", the resolver's ",[14,2562,2563],{},"groupDir(group, value)"," picks each file's folder. See ",[19,2566,2568],{"href":2567},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fresolvers#auto-injected-resolver-defaults","Built-in members",[632,2570,2571,2581],{},[635,2572,2573],{},[638,2574,2575,2578],{},[641,2576,2577],{},"Group",[641,2579,2580],{},"Folder",[648,2582,2583,2598,2614],{},[638,2584,2585,2590],{},[653,2586,2587,2588],{},"A custom ",[14,2589,974],{},[653,2591,2592,2593,2595,2596,33],{},"What ",[14,2594,974],{}," returns. It wins over ",[14,2597,152],{},[638,2599,2600,2605],{},[653,2601,2602],{},[14,2603,2604],{},"type: 'tag'",[653,2606,2607,2608,2610,2611],{},"The camelCased tag, inside the folders of its OpenAPI 3.2 ",[14,2609,959],{}," tags, such as ",[14,2612,2613],{},"animals\u002Fcats\u002F",[638,2615,2616,2621],{},[653,2617,2618],{},[14,2619,2620],{},"type: 'path'",[653,2622,2623],{},"The first path segment",{"title":870,"searchDepth":2625,"depth":2625,"links":2626},5,[2627,2636,2640,2644,2645,2646,2647,2648],{"id":37,"depth":2628,"text":37,"children":2629},2,[2630,2632,2633,2634,2635],{"id":184,"depth":2631,"text":32},3,{"id":200,"depth":2631,"text":201},{"id":459,"depth":2631,"text":24},{"id":591,"depth":2631,"text":592},{"id":828,"depth":2631,"text":829},{"id":232,"depth":2628,"text":232,"children":2637},[2638,2639],{"id":932,"depth":2631,"text":933},{"id":973,"depth":2631,"text":974},{"id":1074,"depth":2628,"text":1074,"children":2641},[2642,2643],{"id":1083,"depth":2631,"text":1084},{"id":1499,"depth":2631,"text":1500},{"id":1094,"depth":2628,"text":1094},{"id":1100,"depth":2628,"text":1100},{"id":1932,"depth":2628,"text":1932},{"id":2253,"depth":2628,"text":2253},{"id":2447,"depth":2628,"text":2448,"children":2649},[2650,2651],{"id":2451,"depth":2631,"text":1254},{"id":2551,"depth":2631,"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":2655,"title":5,"description":2652,"outline":2656,"order":2628,"navigation":2657},"doc",[2628,2631],{"title":5,"icon":2658},"i-iconoir-settings",{"layout":2655,"outline":2660},[2628,2631],{"title":5,"icon":2658},"\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options",{"title":5,"description":2652},{"loc":2662},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options.md","docs\u002F5.x\u002Freference\u002Fplugin-options","_ldrO3l1aydqB_Oxxn_XyZb9jeMLa0CGtBMYgzzeYH4",1795727675690,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]