[{"data":1,"prerenderedAt":1659,"buildId":1660},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fplugin-faker\u002Foptions":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":1658,"source":4},"extensions\u002Fkubb-labs\u002Fplugin-faker\u002Foptions.md",{},"Options",{"type":8,"value":9,"toc":1642},"minimark",[10,25,30,286,290,294,297,337,355,543,569,787,790,804,841,868,878,893,896,902,939,966,968,987,1024,1052,1054,1060,1089,1091,1114,1143,1242,1246,1254,1284],[11,12,13,14,18,19,24],"p",{},"Pass these options to ",[15,16,17],"code",{},"pluginFaker()",". Shared options link to ",[20,21,23],"a",{"href":22},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options","Shared plugin options",", and this page gives only their default here.",[26,27,29],"h2",{"id":28},"options-overview","Options overview",[31,32,33,49],"table",{},[34,35,36],"thead",{},[37,38,39,43,46],"tr",{},[40,41,42],"th",{},"Option",[40,44,45],{},"Purpose",[40,47,48],{},"Default",[50,51,52,71,87,105,123,144,162,181,196,211,229,246,269],"tbody",{},[37,53,54,63,66],{},[55,56,57],"td",{},[20,58,60],{"href":59},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output",[15,61,62],{},"output",[55,64,65],{},"Where files are written.",[55,67,68],{},[15,69,70],{},"{ path: 'mocks', barrel: { type: 'named' } }",[37,72,73,81,84],{},[55,74,75],{},[20,76,78],{"href":77},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#group",[15,79,80],{},"group",[55,82,83],{},"Split output by tag or path.",[55,85,86],{},"None",[37,88,89,97,100],{},[55,90,91],{},[20,92,94],{"href":93},"#typemode",[15,95,96],{},"typeMode",[55,98,99],{},"Factory types from the generated values or the declared model.",[55,101,102],{},[15,103,104],{},"'inferred'",[37,106,107,115,118],{},[55,108,109],{},[20,110,112],{"href":111},"#dateparser",[15,113,114],{},"dateParser",[55,116,117],{},"Library that formats string date and time fields.",[55,119,120],{},[15,121,122],{},"'faker'",[37,124,125,133,140],{},[55,126,127],{},[20,128,130],{"href":129},"#regexgenerator",[15,131,132],{},"regexGenerator",[55,134,135,136,139],{},"Library that turns a regex ",[15,137,138],{},"pattern"," into a string.",[55,141,142],{},[15,143,122],{},[37,145,146,154,157],{},[55,147,148],{},[20,149,151],{"href":150},"#locale",[15,152,153],{},"locale",[55,155,156],{},"Faker locale of the generated values.",[55,158,159],{},[15,160,161],{},"'en'",[37,163,164,172,179],{},[55,165,166],{},[20,167,169],{"href":168},"#seed",[15,170,171],{},"seed",[55,173,174,175,178],{},"Value passed to ",[15,176,177],{},"faker.seed(...)"," for repeatable output.",[55,180,86],{},[37,182,183,191,194],{},[55,184,185],{},[20,186,188],{"href":187},"#printer",[15,189,190],{},"printer",[55,192,193],{},"Replace the handler for a schema type.",[55,195,86],{},[37,197,198,206,209],{},[55,199,200],{},[20,201,203],{"href":202},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#include",[15,204,205],{},"include",[55,207,208],{},"Keep only operations and schemas that match.",[55,210,86],{},[37,212,213,221,224],{},[55,214,215],{},[20,216,218],{"href":217},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#exclude",[15,219,220],{},"exclude",[55,222,223],{},"Skip operations and schemas that match.",[55,225,226],{},[15,227,228],{},"[]",[37,230,231,239,242],{},[55,232,233],{},[20,234,236],{"href":235},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#override",[15,237,238],{},"override",[55,240,241],{},"Apply different options per pattern.",[55,243,244],{},[15,245,228],{},[37,247,248,256,264],{},[55,249,250],{},[20,251,253],{"href":252},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#resolver",[15,254,255],{},"resolver",[55,257,258,259,263],{},"Customize generated names and file paths. See ",[20,260,262],{"href":261},"#resolver-members","resolver members",".",[55,265,266],{},[15,267,268],{},"resolverFaker",[37,270,271,279,282],{},[55,272,273],{},[20,274,276],{"href":275},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#macros",[15,277,278],{},"macros",[55,280,281],{},"Rewrite AST nodes before printing.",[55,283,284],{},[15,285,228],{},[26,287,289],{"id":288},"option-details","Option details",[291,292,96],"h3",{"id":293},"typemode",[11,295,296],{},"Sets the input and return types of object and intersection factories. Both modes generate the same values and shallow-merge the overrides.",[31,298,299,307],{},[34,300,301],{},[37,302,303,305],{},[40,304],{},[40,306],{},[50,308,309,319,329],{},[37,310,311,314],{},[55,312,313],{},"Type",[55,315,316],{},[15,317,318],{},"'inferred' | 'schema'",[37,320,321,324],{},[55,322,323],{},"Required",[55,325,326],{},[15,327,328],{},"false",[37,330,331,333],{},[55,332,48],{},[55,334,335],{},[15,336,104],{},[338,339,340,348],"field-group",{},[341,342,343,344,347],"field",{"name":104},"Takes any ",[15,345,346],{},"Partial\u003CModel>"," and keeps its literal types. Returns the generated value types merged with the override types, so optional and nullable fields keep their concrete value types.",[341,349,351,352,354],{"name":350},"'schema'","Takes a ",[15,353,346],{}," and returns the declared model type, with its optional and nullable fields. Use it for fixtures you change after creation.",[356,357,358,461],"code-group",{},[359,360,365],"pre",{"language":361,"filename":362,"code":363,"class":364},"typescript","'inferred' (default)","\u002F\u002F export function createOrder\u003CTData extends Partial\u003COrder> = object>(data?: TData)\nconst order = createOrder({ quantity: 2, complete: true })\nconst complete: true = order.complete\n\n\u002F\u002F TypeScript error: false is not assignable to true.\norder.complete = false","highlights",[15,366,368,377,378,377,422,377,441,377,443,377,448],{"class":367},"language-typescript",[369,370,373],"span",{"class":371,"style":372},"line","display: inline",[369,374,376],{"style":375},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F export function createOrder\u003CTData extends Partial\u003COrder> = object>(data?: TData)","\n",[369,379,380,384,388,391,395,399,402,405,408,411,414,416,419],{"class":371,"style":372},[369,381,383],{"style":382},"color:#d73a49;--hls-dark:#f97583","const ",[369,385,387],{"style":386},"color:#24292e;--hls-dark:#e1e4e8","order ",[369,389,390],{"style":382},"= ",[369,392,394],{"style":393},"color:#6f42c1;--hls-dark:#b392f0","createOrder",[369,396,398],{"style":397},"color:#005cc5;--hls-dark:#79b8ff","({ ",[369,400,401],{"style":397},"quantity",[369,403,404],{"style":382},": ",[369,406,407],{"style":397},"2",[369,409,410],{"style":382},", ",[369,412,413],{"style":397},"complete",[369,415,404],{"style":382},[369,417,418],{"style":397},"true ",[369,420,421],{"style":397},"})",[369,423,424,426,428,430,432,434,437,439],{"class":371,"style":372},[369,425,383],{"style":382},[369,427,413],{"style":386},[369,429,404],{"style":382},[369,431,418],{"style":397},[369,433,390],{"style":382},[369,435,436],{"style":386},"order",[369,438,263],{"style":382},[369,440,413],{"style":397},[369,442],{"class":371,"style":372},[369,444,445],{"class":371,"style":372},[369,446,447],{"style":375},"\u002F\u002F TypeScript error: false is not assignable to true.",[369,449,450,452,454,457,459],{"class":371,"style":372},[369,451,436],{"style":386},[369,453,263],{"style":382},[369,455,456],{"style":397},"complete ",[369,458,390],{"style":382},[369,460,328],{"style":397},[359,462,464],{"language":361,"filename":350,"code":463,"class":364},"\u002F\u002F export function createOrder(data?: Partial\u003COrder>): Order\nconst order = createOrder({ quantity: 2, complete: true })\norder.complete = false\n\n\u002F\u002F TypeScript error: foo does not exist in Partial\u003COrder>.\ncreateOrder({ quantity: 2, foo: '' })",[15,465,466,377,471,377,499,377,511,377,513,377,518],{"class":367},[369,467,468],{"class":371,"style":372},[369,469,470],{"style":375},"\u002F\u002F export function createOrder(data?: Partial\u003COrder>): Order",[369,472,473,475,477,479,481,483,485,487,489,491,493,495,497],{"class":371,"style":372},[369,474,383],{"style":382},[369,476,387],{"style":386},[369,478,390],{"style":382},[369,480,394],{"style":393},[369,482,398],{"style":397},[369,484,401],{"style":397},[369,486,404],{"style":382},[369,488,407],{"style":397},[369,490,410],{"style":382},[369,492,413],{"style":397},[369,494,404],{"style":382},[369,496,418],{"style":397},[369,498,421],{"style":397},[369,500,501,503,505,507,509],{"class":371,"style":372},[369,502,436],{"style":386},[369,504,263],{"style":382},[369,506,456],{"style":397},[369,508,390],{"style":382},[369,510,328],{"style":397},[369,512],{"class":371,"style":372},[369,514,515],{"class":371,"style":372},[369,516,517],{"style":375},"\u002F\u002F TypeScript error: foo does not exist in Partial\u003COrder>.",[369,519,520,522,524,526,528,530,532,535,537,541],{"class":371,"style":372},[369,521,394],{"style":393},[369,523,398],{"style":397},[369,525,401],{"style":397},[369,527,404],{"style":382},[369,529,407],{"style":397},[369,531,410],{"style":382},[369,533,534],{"style":397},"foo",[369,536,404],{"style":382},[369,538,540],{"style":539},"color:#032f62;--hls-dark:#9ecbff","'' ",[369,542,421],{"style":397},[11,544,545,546,550,551,553,554,557,558,561,562,564,565,568],{},"To pick a mode for some schemas only, use ",[20,547,548],{"href":235},[15,549,238],{},". A string ",[15,552,138],{}," is a regular expression, so ",[15,555,556],{},"'Order'"," also matches ",[15,559,560],{},"OrderItem",". This sets ",[15,563,96],{}," for ",[15,566,567],{},"Order"," alone:",[359,570,573],{"language":361,"filename":571,"code":572,"class":364},"kubb.config.ts","import { defineConfig } from 'kubb\u002Fconfig'\nimport { pluginFaker } from '@kubb\u002Fplugin-faker'\nimport { pluginTs } from '@kubb\u002Fplugin-ts'\n\nexport default defineConfig({\n input: '.\u002FpetStore.yaml',\n output: { path: '.\u002Fsrc\u002Fgen' },\n plugins: [\n pluginTs(),\n pluginFaker({\n override: [{ type: 'schemaName', pattern: '^Order$', options: { typeMode: 'schema' } }],\n }),\n ],\n})",[15,574,575,377,595,377,611,377,627,377,629,377,643,377,659,377,682,377,694,377,707,377,716,377,766,377,774,377,783],{"class":367},[369,576,577,580,583,586,589,592],{"class":371,"style":372},[369,578,579],{"style":382},"import ",[369,581,582],{"style":397},"{ ",[369,584,585],{"style":386},"defineConfig ",[369,587,588],{"style":397},"} ",[369,590,591],{"style":382},"from ",[369,593,594],{"style":539},"'kubb\u002Fconfig'",[369,596,597,599,601,604,606,608],{"class":371,"style":372},[369,598,579],{"style":382},[369,600,582],{"style":397},[369,602,603],{"style":386},"pluginFaker ",[369,605,588],{"style":397},[369,607,591],{"style":382},[369,609,610],{"style":539},"'@kubb\u002Fplugin-faker'",[369,612,613,615,617,620,622,624],{"class":371,"style":372},[369,614,579],{"style":382},[369,616,582],{"style":397},[369,618,619],{"style":386},"pluginTs ",[369,621,588],{"style":397},[369,623,591],{"style":382},[369,625,626],{"style":539},"'@kubb\u002Fplugin-ts'",[369,628],{"class":371,"style":372},[369,630,631,634,637,640],{"class":371,"style":372},[369,632,633],{"style":382},"export ",[369,635,636],{"style":382},"default ",[369,638,639],{"style":393},"defineConfig",[369,641,642],{"style":397},"({",[369,644,645,648,651,653,656],{"class":371,"style":372},[369,646,647],{"style":397}," ",[369,649,650],{"style":397},"input",[369,652,404],{"style":382},[369,654,655],{"style":539},"'.\u002FpetStore.yaml'",[369,657,658],{"style":382},",",[369,660,661,663,665,667,669,672,674,677,680],{"class":371,"style":372},[369,662,647],{"style":382},[369,664,62],{"style":397},[369,666,404],{"style":382},[369,668,582],{"style":397},[369,670,671],{"style":397},"path",[369,673,404],{"style":382},[369,675,676],{"style":539},"'.\u002Fsrc\u002Fgen' ",[369,678,679],{"style":397},"}",[369,681,658],{"style":382},[369,683,684,686,689,691],{"class":371,"style":372},[369,685,647],{"style":382},[369,687,688],{"style":397},"plugins",[369,690,404],{"style":382},[369,692,693],{"style":397},"[",[369,695,696,699,702,705],{"class":371,"style":372},[369,697,698],{"style":397}," ",[369,700,701],{"style":393},"pluginTs",[369,703,704],{"style":397},"()",[369,706,658],{"style":382},[369,708,709,711,714],{"class":371,"style":372},[369,710,698],{"style":382},[369,712,713],{"style":393},"pluginFaker",[369,715,642],{"style":397},[369,717,718,721,723,725,728,731,733,736,738,740,742,745,747,750,752,754,756,758,761,764],{"class":371,"style":372},[369,719,720],{"style":397}," ",[369,722,238],{"style":397},[369,724,404],{"style":382},[369,726,727],{"style":397},"[{ ",[369,729,730],{"style":397},"type",[369,732,404],{"style":382},[369,734,735],{"style":539},"'schemaName'",[369,737,410],{"style":382},[369,739,138],{"style":397},[369,741,404],{"style":382},[369,743,744],{"style":539},"'^Order$'",[369,746,410],{"style":382},[369,748,749],{"style":397},"options",[369,751,404],{"style":382},[369,753,582],{"style":397},[369,755,96],{"style":397},[369,757,404],{"style":382},[369,759,760],{"style":539},"'schema' ",[369,762,763],{"style":397},"} }]",[369,765,658],{"style":382},[369,767,768,770,772],{"class":371,"style":372},[369,769,698],{"style":382},[369,771,421],{"style":397},[369,773,658],{"style":382},[369,775,776,778,781],{"class":371,"style":372},[369,777,647],{"style":382},[369,779,780],{"style":397},"]",[369,782,658],{"style":382},[369,784,785],{"class":371,"style":372},[369,786,421],{"style":397},[291,788,114],{"id":789},"dateparser",[11,791,792,793,410,796,799,800,803],{},"Library that formats ",[15,794,795],{},"date",[15,797,798],{},"time",", and ",[15,801,802],{},"date-time"," fields typed as strings. Install the library you pick in the app.",[31,805,806,814],{},[34,807,808],{},[37,809,810,812],{},[40,811],{},[40,813],{},[50,815,816,825,833],{},[37,817,818,820],{},[55,819,313],{},[55,821,822],{},[15,823,824],{},"'faker' | 'dayjs' | 'moment' | string",[37,826,827,829],{},[55,828,323],{},[55,830,831],{},[15,832,328],{},[37,834,835,837],{},[55,836,48],{},[55,838,839],{},[15,840,122],{},[338,842,843,852,860],{},[341,844,845,846,848,849,263],{"name":122},"Renders a ",[15,847,795],{}," field as ",[15,850,851],{},"faker.date.anytime().toISOString().substring(0, 10)",[341,853,845,855,848,857,263],{"name":854},"'dayjs'",[15,856,795],{},[15,858,859],{},"dayjs(faker.date.anytime()).format(\"YYYY-MM-DD\")",[341,861,845,863,848,865,263],{"name":862},"'moment'",[15,864,795],{},[15,866,867],{},"moment(faker.date.anytime()).format(\"YYYY-MM-DD\")",[11,869,870,871,874,875,263],{},"Any other module name works when its default export has the dayjs API. Kubb imports it under its camelCased name, so ",[15,872,873],{},"'my-date-lib'"," becomes ",[15,876,877],{},"myDateLib",[879,880,882,883,885,886,889,890,263],"blockquote",{"as":881},"warning","A value other than ",[15,884,122],{}," fails generation when the adapter types dates as ",[15,887,888],{},"Date",", such as with ",[15,891,892],{},"dateType: 'date'",[291,894,132],{"id":895},"regexgenerator",[11,897,898,899,901],{},"Library that generates strings matching a regex ",[15,900,138],{}," in the spec.",[31,903,904,912],{},[34,905,906],{},[37,907,908,910],{},[40,909],{},[40,911],{},[50,913,914,923,931],{},[37,915,916,918],{},[55,917,313],{},[55,919,920],{},[15,921,922],{},"'faker' | 'randexp'",[37,924,925,927],{},[55,926,323],{},[55,928,929],{},[15,930,328],{},[37,932,933,935],{},[55,934,48],{},[55,936,937],{},[15,938,122],{},[338,940,941,955],{},[341,942,943,944,947,948,951,952,263],{"name":122},"Writes ",[15,945,946],{},"faker.helpers.fromRegExp(\u002Fpattern\u002F)"," and needs no extra dependency. Faker does not support groups, alternation (",[15,949,950],{},"a|b","), or ",[15,953,954],{},"\\s",[341,956,943,958,961,962,965],{"name":957},"'randexp'",[15,959,960],{},"new RandExp(pattern).gen()",", which supports a wider regex grammar. Install ",[15,963,964],{},"randexp"," in the app.",[291,967,153],{"id":153},[11,969,970,974,975,978,979,982,983,986],{},[20,971,973],{"href":972},"https:\u002F\u002Ffakerjs.dev\u002Fapi\u002Flocalization.html","Faker locale code",". Kubb imports the matching ",[15,976,977],{},"fakerXX"," export from ",[15,980,981],{},"@faker-js\u002Ffaker"," as ",[15,984,985],{},"faker",", so generated values fit the target region.",[31,988,989,997],{},[34,990,991],{},[37,992,993,995],{},[40,994],{},[40,996],{},[50,998,999,1008,1016],{},[37,1000,1001,1003],{},[55,1002,313],{},[55,1004,1005],{},[15,1006,1007],{},"string",[37,1009,1010,1012],{},[55,1011,323],{},[55,1013,1014],{},[15,1015,328],{},[37,1017,1018,1020],{},[55,1019,48],{},[55,1021,1022],{},[15,1023,161],{},[359,1025,1028],{"language":361,"filename":1026,"code":1027,"class":364},"locale: 'de_AT'","import { fakerDE_AT as faker } from '@faker-js\u002Ffaker'",[15,1029,1030],{"class":367},[369,1031,1032,1034,1036,1039,1042,1045,1047,1049],{"class":371,"style":372},[369,1033,579],{"style":382},[369,1035,582],{"style":397},[369,1037,1038],{"style":386},"fakerDE_AT ",[369,1040,1041],{"style":382},"as ",[369,1043,1044],{"style":386},"faker ",[369,1046,588],{"style":397},[369,1048,591],{"style":382},[369,1050,1051],{"style":539},"'@faker-js\u002Ffaker'",[291,1053,171],{"id":171},[11,1055,1056,1057,1059],{},"Kubb calls ",[15,1058,177],{}," with this value at the top of each generated file, so every run returns the same data. Use it for snapshot tests. A second call to the same factory returns the next values in the sequence.",[31,1061,1062,1070],{},[34,1063,1064],{},[37,1065,1066,1068],{},[40,1067],{},[40,1069],{},[50,1071,1072,1081],{},[37,1073,1074,1076],{},[55,1075,313],{},[55,1077,1078],{},[15,1079,1080],{},"number | number[]",[37,1082,1083,1085],{},[55,1084,323],{},[55,1086,1087],{},[15,1088,328],{},[291,1090,190],{"id":190},[11,1092,1093,1094,1097,1098,1101,1102,1105,1106,1109,1110,263],{},"Replaces the Faker handler for a schema type, such as ",[15,1095,1096],{},"'integer'"," or ",[15,1099,1100],{},"'date'",". Each handler returns the Faker expression as a string. Inside a handler, ",[15,1103,1104],{},"this.transform"," recurses into nested nodes and ",[15,1107,1108],{},"this.options"," holds the printer options. See the ",[20,1111,1113],{"href":1112},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Fhow-to\u002Fcustomize#printers","printer guide",[31,1115,1116,1124],{},[34,1117,1118],{},[37,1119,1120,1122],{},[40,1121],{},[40,1123],{},[50,1125,1126,1135],{},[37,1127,1128,1130],{},[55,1129,313],{},[55,1131,1132],{},[15,1133,1134],{},"{ nodes?: PrinterFakerNodes }",[37,1136,1137,1139],{},[55,1138,323],{},[55,1140,1141],{},[15,1142,328],{},[359,1144,1147],{"language":361,"filename":1145,"code":1146,"class":364},"Map integer schemas to a float","import { pluginFaker } from '@kubb\u002Fplugin-faker'\n\npluginFaker({\n printer: {\n nodes: {\n integer() {\n return 'faker.number.float()'\n },\n },\n },\n})",[15,1148,1149,377,1163,377,1165,377,1171,377,1182,377,1193,377,1203,377,1214,377,1222,377,1230,377,1238],{"class":367},[369,1150,1151,1153,1155,1157,1159,1161],{"class":371,"style":372},[369,1152,579],{"style":382},[369,1154,582],{"style":397},[369,1156,603],{"style":386},[369,1158,588],{"style":397},[369,1160,591],{"style":382},[369,1162,610],{"style":539},[369,1164],{"class":371,"style":372},[369,1166,1167,1169],{"class":371,"style":372},[369,1168,713],{"style":393},[369,1170,642],{"style":397},[369,1172,1173,1175,1177,1179],{"class":371,"style":372},[369,1174,647],{"style":397},[369,1176,190],{"style":397},[369,1178,404],{"style":382},[369,1180,1181],{"style":397},"{",[369,1183,1184,1186,1189,1191],{"class":371,"style":372},[369,1185,698],{"style":397},[369,1187,1188],{"style":397},"nodes",[369,1190,404],{"style":382},[369,1192,1181],{"style":397},[369,1194,1195,1197,1200],{"class":371,"style":372},[369,1196,720],{"style":397},[369,1198,1199],{"style":393},"integer",[369,1201,1202],{"style":397},"() {",[369,1204,1205,1208,1211],{"class":371,"style":372},[369,1206,1207],{"style":397}," ",[369,1209,1210],{"style":382},"return ",[369,1212,1213],{"style":539},"'faker.number.float()'",[369,1215,1216,1218,1220],{"class":371,"style":372},[369,1217,720],{"style":539},[369,1219,679],{"style":397},[369,1221,658],{"style":382},[369,1223,1224,1226,1228],{"class":371,"style":372},[369,1225,698],{"style":382},[369,1227,679],{"style":397},[369,1229,658],{"style":382},[369,1231,1232,1234,1236],{"class":371,"style":372},[369,1233,647],{"style":382},[369,1235,679],{"style":397},[369,1237,658],{"style":382},[369,1239,1240],{"class":371,"style":372},[369,1241,421],{"style":397},[26,1243,1245],{"id":1244},"resolver-members","Resolver members",[11,1247,1248,1250,1251,1253],{},[15,1249,255],{}," takes one patch or an array of patches. An array merges over ",[15,1252,268],{}," from left to right.",[11,1255,1256,1257,1259,1260,1263,1264,1266,1267,410,1270,799,1273,1276,1277,410,1281,1283],{},"A ",[15,1258,255],{}," patch can add a ",[15,1261,1262],{},"Mock"," suffix so factories do not clash with imported types. Members you leave out of the patch keep ",[15,1265,268],{},". Besides the shared ",[15,1268,1269],{},"name",[15,1271,1272],{},"file",[15,1274,1275],{},"imports"," members of ",[20,1278,1279],{"href":252},[15,1280,255],{},[15,1282,268],{}," has these:",[1285,1286,1288],"code-collapse",{"name":1287},"ResolverFaker patch members",[359,1289,1292],{"language":361,"filename":1290,"code":1291,"class":364},"Partial override","type ResolverFakerPatch = {\n param?: {\n name?(node: OperationNode, param: ParameterNode): string \u002F\u002F → 'createShowPetByIdPathPetId'\n path?(node: OperationNode, param: ParameterNode): string \u002F\u002F → 'createShowPetByIdPath'\n query?(node: OperationNode, param: ParameterNode): string \u002F\u002F → 'createListPetsQuery'\n headers?(node: OperationNode, param: ParameterNode): string \u002F\u002F → 'createDeletePetHeaders'\n cookies?(node: OperationNode, param: ParameterNode): string \u002F\u002F → 'createGetSessionCookies'\n }\n response?: {\n status?(node: OperationNode, statusCode: StatusCode): string \u002F\u002F → 'createListPetsStatus200'\n body?(node: OperationNode): string \u002F\u002F → 'createCreatePetsBody'\n response?(node: OperationNode): string \u002F\u002F → 'createListPetsResponse'\n responses?(node: OperationNode): string \u002F\u002F → 'createListPetsResponses'\n }\n}",[15,1293,1294,377,1306,377,1320,377,1359,377,1393,377,1427,377,1462,377,1496,377,1502,377,1515,377,1552,377,1579,377,1605,377,1632,377,1638],{"class":367},[369,1295,1296,1299,1302,1304],{"class":371,"style":372},[369,1297,1298],{"style":382},"type ",[369,1300,1301],{"style":393},"ResolverFakerPatch ",[369,1303,390],{"style":382},[369,1305,1181],{"style":397},[369,1307,1308,1310,1313,1316,1318],{"class":371,"style":372},[369,1309,647],{"style":397},[369,1311,1312],{"style":397},"param",[369,1314,1315],{"style":386},"?",[369,1317,404],{"style":382},[369,1319,1181],{"style":397},[369,1321,1322,1324,1326,1328,1331,1334,1336,1339,1341,1343,1345,1348,1351,1353,1356],{"class":371,"style":372},[369,1323,698],{"style":397},[369,1325,1269],{"style":386},[369,1327,1315],{"style":382},[369,1329,1330],{"style":397},"(",[369,1332,1333],{"style":386},"node",[369,1335,404],{"style":386},[369,1337,1338],{"style":393},"OperationNode",[369,1340,410],{"style":382},[369,1342,1312],{"style":386},[369,1344,404],{"style":386},[369,1346,1347],{"style":393},"ParameterNode",[369,1349,1350],{"style":397},")",[369,1352,404],{"style":386},[369,1354,1355],{"style":393},"string ",[369,1357,1358],{"style":375},"\u002F\u002F → 'createShowPetByIdPathPetId'",[369,1360,1361,1363,1365,1367,1369,1371,1373,1375,1377,1379,1381,1383,1385,1387,1390],{"class":371,"style":372},[369,1362,698],{"style":375},[369,1364,671],{"style":386},[369,1366,1315],{"style":382},[369,1368,1330],{"style":397},[369,1370,1333],{"style":386},[369,1372,404],{"style":386},[369,1374,1338],{"style":393},[369,1376,410],{"style":382},[369,1378,1312],{"style":386},[369,1380,404],{"style":386},[369,1382,1347],{"style":393},[369,1384,1350],{"style":397},[369,1386,404],{"style":386},[369,1388,1389],{"style":393},"string ",[369,1391,1392],{"style":375},"\u002F\u002F → 'createShowPetByIdPath'",[369,1394,1395,1397,1400,1402,1404,1406,1408,1410,1412,1414,1416,1418,1420,1422,1424],{"class":371,"style":372},[369,1396,698],{"style":375},[369,1398,1399],{"style":386},"query",[369,1401,1315],{"style":382},[369,1403,1330],{"style":397},[369,1405,1333],{"style":386},[369,1407,404],{"style":386},[369,1409,1338],{"style":393},[369,1411,410],{"style":382},[369,1413,1312],{"style":386},[369,1415,404],{"style":386},[369,1417,1347],{"style":393},[369,1419,1350],{"style":397},[369,1421,404],{"style":386},[369,1423,1355],{"style":393},[369,1425,1426],{"style":375},"\u002F\u002F → 'createListPetsQuery'",[369,1428,1429,1431,1434,1436,1438,1440,1442,1444,1446,1448,1450,1452,1454,1456,1459],{"class":371,"style":372},[369,1430,698],{"style":375},[369,1432,1433],{"style":386},"headers",[369,1435,1315],{"style":382},[369,1437,1330],{"style":397},[369,1439,1333],{"style":386},[369,1441,404],{"style":386},[369,1443,1338],{"style":393},[369,1445,410],{"style":382},[369,1447,1312],{"style":386},[369,1449,404],{"style":386},[369,1451,1347],{"style":393},[369,1453,1350],{"style":397},[369,1455,404],{"style":386},[369,1457,1458],{"style":393},"string ",[369,1460,1461],{"style":375},"\u002F\u002F → 'createDeletePetHeaders'",[369,1463,1464,1466,1469,1471,1473,1475,1477,1479,1481,1483,1485,1487,1489,1491,1493],{"class":371,"style":372},[369,1465,698],{"style":375},[369,1467,1468],{"style":386},"cookies",[369,1470,1315],{"style":382},[369,1472,1330],{"style":397},[369,1474,1333],{"style":386},[369,1476,404],{"style":386},[369,1478,1338],{"style":393},[369,1480,410],{"style":382},[369,1482,1312],{"style":386},[369,1484,404],{"style":386},[369,1486,1347],{"style":393},[369,1488,1350],{"style":397},[369,1490,404],{"style":386},[369,1492,1458],{"style":393},[369,1494,1495],{"style":375},"\u002F\u002F → 'createGetSessionCookies'",[369,1497,1498,1500],{"class":371,"style":372},[369,1499,647],{"style":375},[369,1501,679],{"style":397},[369,1503,1504,1506,1509,1511,1513],{"class":371,"style":372},[369,1505,647],{"style":397},[369,1507,1508],{"style":386},"response",[369,1510,1315],{"style":386},[369,1512,404],{"style":382},[369,1514,1181],{"style":397},[369,1516,1517,1519,1522,1524,1526,1528,1530,1532,1534,1537,1539,1542,1544,1546,1549],{"class":371,"style":372},[369,1518,698],{"style":397},[369,1520,1521],{"style":386},"status",[369,1523,1315],{"style":382},[369,1525,1330],{"style":397},[369,1527,1333],{"style":386},[369,1529,404],{"style":386},[369,1531,1338],{"style":393},[369,1533,410],{"style":382},[369,1535,1536],{"style":386},"statusCode",[369,1538,404],{"style":386},[369,1540,1541],{"style":393},"StatusCode",[369,1543,1350],{"style":397},[369,1545,404],{"style":386},[369,1547,1548],{"style":393},"string ",[369,1550,1551],{"style":375},"\u002F\u002F → 'createListPetsStatus200'",[369,1553,1554,1556,1559,1561,1563,1565,1567,1569,1571,1573,1576],{"class":371,"style":372},[369,1555,698],{"style":375},[369,1557,1558],{"style":386},"body",[369,1560,1315],{"style":382},[369,1562,1330],{"style":397},[369,1564,1333],{"style":386},[369,1566,404],{"style":386},[369,1568,1338],{"style":393},[369,1570,1350],{"style":397},[369,1572,404],{"style":386},[369,1574,1575],{"style":393},"string ",[369,1577,1578],{"style":375},"\u002F\u002F → 'createCreatePetsBody'",[369,1580,1581,1583,1585,1587,1589,1591,1593,1595,1597,1599,1602],{"class":371,"style":372},[369,1582,698],{"style":375},[369,1584,1508],{"style":386},[369,1586,1315],{"style":382},[369,1588,1330],{"style":397},[369,1590,1333],{"style":386},[369,1592,404],{"style":386},[369,1594,1338],{"style":393},[369,1596,1350],{"style":397},[369,1598,404],{"style":386},[369,1600,1601],{"style":393},"string ",[369,1603,1604],{"style":375},"\u002F\u002F → 'createListPetsResponse'",[369,1606,1607,1609,1612,1614,1616,1618,1620,1622,1624,1626,1629],{"class":371,"style":372},[369,1608,698],{"style":375},[369,1610,1611],{"style":386},"responses",[369,1613,1315],{"style":382},[369,1615,1330],{"style":397},[369,1617,1333],{"style":386},[369,1619,404],{"style":386},[369,1621,1338],{"style":393},[369,1623,1350],{"style":397},[369,1625,404],{"style":386},[369,1627,1628],{"style":393},"string ",[369,1630,1631],{"style":375},"\u002F\u002F → 'createListPetsResponses'",[369,1633,1634,1636],{"class":371,"style":372},[369,1635,647],{"style":375},[369,1637,679],{"style":397},[369,1639,1640],{"class":371,"style":372},[369,1641,679],{"style":397},{"title":1643,"searchDepth":1644,"depth":1644,"links":1645},"",5,[1646,1648,1657],{"id":28,"depth":1647,"text":29},2,{"id":288,"depth":1647,"text":289,"children":1649},[1650,1652,1653,1654,1655,1656],{"id":293,"depth":1651,"text":96},3,{"id":789,"depth":1651,"text":114},{"id":895,"depth":1651,"text":132},{"id":153,"depth":1651,"text":153},{"id":171,"depth":1651,"text":171},{"id":190,"depth":1651,"text":190},{"id":1244,"depth":1647,"text":1245},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-faker\u002Foptions",1795727680710,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]