[{"data":1,"prerenderedAt":1658},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fadapter-oas\u002Foptions":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":1657,"source":4},"extensions\u002Fkubb-labs\u002Fadapter-oas\u002Foptions.md",{},"Options",{"type":8,"value":9,"toc":1638},"minimark",[10,19,24,200,204,207,232,273,276,279,308,310,348,377,409,425,427,440,478,493,972,974,976,1014,1027,1040,1122,1125,1134,1172,1175,1228,1238,1252,1332,1335,1357,1395,1414,1443,1446,1456,1494,1510,1513,1525,1565,1578,1581,1601],[11,12,13,14,18],"p",{},"Pass these options to ",[15,16,17],"code",{},"adapterOas()",". All of them are optional.",[20,21,23],"h2",{"id":22},"options-overview","Options overview",[25,26,27,40],"table",{},[28,29,30],"thead",{},[31,32,33,37],"tr",{},[34,35,36],"th",{},"Option",[34,38,39],{},"Purpose",[41,42,43,58,71,88,104,117,141,161,174,187],"tbody",{},[31,44,45,55],{},[46,47,48],"td",{},[49,50,52],"a",{"href":51},"#validate",[15,53,54],{},"validate",[46,56,57],{},"Validate the spec before parsing.",[31,59,60,68],{},[46,61,62],{},[49,63,65],{"href":64},"#contenttype",[15,66,67],{},"contentType",[46,69,70],{},"Preferred media type for request and response schemas.",[31,72,73,81],{},[46,74,75],{},[49,76,78],{"href":77},"#server",[15,79,80],{},"server",[46,82,83,84,87],{},"Which spec server Kubb resolves into the document ",[15,85,86],{},"baseURL",".",[31,89,90,98],{},[46,91,92],{},[49,93,95],{"href":94},"#discriminator",[15,96,97],{},"discriminator",[46,99,100,101,103],{},"How ",[15,102,97],{}," fields are interpreted.",[31,105,106,114],{},[46,107,108],{},[49,109,111],{"href":110},"#enums",[15,112,113],{},"enums",[46,115,116],{},"Where inline enums live.",[31,118,119,127],{},[46,120,121],{},[49,122,124],{"href":123},"#datetype",[15,125,126],{},"dateType",[46,128,100,129,132,133,136,137,140],{},[15,130,131],{},"date-time",", ",[15,134,135],{},"date",", and ",[15,138,139],{},"time"," schemas are represented.",[31,142,143,151],{},[46,144,145],{},[49,146,148],{"href":147},"#integertype",[15,149,150],{},"integerType",[46,152,100,153,156,157,160],{},[15,154,155],{},"int64"," and ",[15,158,159],{},"uint64"," integers map to TypeScript.",[31,162,163,171],{},[46,164,165],{},[49,166,168],{"href":167},"#unknowntype",[15,169,170],{},"unknownType",[46,172,173],{},"Type for schemas Kubb cannot infer.",[31,175,176,184],{},[46,177,178],{},[49,179,181],{"href":180},"#emptyschematype",[15,182,183],{},"emptySchemaType",[46,185,186],{},"Type for empty schemas.",[31,188,189,197],{},[46,190,191],{},[49,192,194],{"href":193},"#enumsuffix",[15,195,196],{},"enumSuffix",[46,198,199],{},"Suffix for derived enum names.",[20,201,203],{"id":202},"option-details","Option details",[205,206,54],"h3",{"id":54},[11,208,209,210,213,214,220,221,224,225,231],{},"Validates the OpenAPI spec with ",[15,211,212],{},"@readme\u002Fopenapi-parser"," before parsing. Each problem is reported as a ",[49,215,217],{"href":216},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-invalid-spec",[15,218,219],{},"KUBB_INVALID_SPEC"," warning, and generation continues. Set it to ",[15,222,223],{},"false"," to skip the check, which makes generation faster on a large spec. Run ",[49,226,228],{"href":227},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fvalidate",[15,229,230],{},"kubb validate"," to list every error.",[25,233,234,242],{},[28,235,236],{},[31,237,238,240],{},[34,239],{},[34,241],{},[41,243,244,254,263],{},[31,245,246,249],{},[46,247,248],{},"Type",[46,250,251],{},[15,252,253],{},"boolean",[31,255,256,259],{},[46,257,258],{},"Required",[46,260,261],{},[15,262,223],{},[31,264,265,268],{},[46,266,267],{},"Default",[46,269,270],{},[15,271,272],{},"true",[205,274,67],{"id":275},"contenttype",[11,277,278],{},"Media type to keep when an operation declares several, for both request bodies and responses. Without a value, Kubb keeps every media type the operation declares.",[25,280,281,289],{},[28,282,283],{},[31,284,285,287],{},[34,286],{},[34,288],{},[41,290,291,300],{},[31,292,293,295],{},[46,294,248],{},[46,296,297],{},[15,298,299],{},"'application\u002Fjson' | string",[31,301,302,304],{},[46,303,258],{},[46,305,306],{},[15,307,223],{},[205,309,80],{"id":80},[11,311,312,313,316,317,319,320,323,324,327,328,331,332,335,336,339,340,156,342,344,345,87],{},"Selects which entry in the spec's ",[15,314,315],{},"servers"," array Kubb resolves into the document ",[15,318,86],{},", filling in any ",[15,321,322],{},"{variable}"," placeholders. ",[15,325,326],{},"server.index"," points at one of the spec's servers, usually ",[15,329,330],{},"0"," for the primary one. ",[15,333,334],{},"server.variables"," supplies placeholder values, falling back to each variable's ",[15,337,338],{},"default"," from the spec. Omit ",[15,341,80],{},[15,343,86],{}," resolves to ",[15,346,347],{},"null",[25,349,350,358],{},[28,351,352],{},[31,353,354,356],{},[34,355],{},[34,357],{},[41,359,360,369],{},[31,361,362,364],{},[46,363,248],{},[46,365,366],{},[15,367,368],{},"{ index?: number, variables?: Record\u003Cstring, string> }",[31,370,371,373],{},[46,372,258],{},[46,374,375],{},[15,376,223],{},[11,378,379,380,382,383,386,387,389,390,132,396,132,402,408],{},"The resolved ",[15,381,86],{}," reaches banner functions through ",[15,384,385],{},"BannerMeta.baseURL"," but does not set request URLs on its own. To change where a generated client sends requests, use that plugin's own ",[15,388,86],{}," option (",[49,391,393],{"href":392},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-fetch",[15,394,395],{},"@kubb\u002Fplugin-fetch",[49,397,399],{"href":398},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-axios",[15,400,401],{},"@kubb\u002Fplugin-axios",[49,403,405],{"href":404},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-msw",[15,406,407],{},"@kubb\u002Fplugin-msw",").",[11,410,411,412,132,415,418,419,421,422,87],{},"With a spec server of ",[15,413,414],{},"https:\u002F\u002Fapi.{env}.example.com",[15,416,417],{},"server: { index: 0, variables: { env: 'prod' } }"," resolves ",[15,420,86],{}," to ",[15,423,424],{},"https:\u002F\u002Fapi.prod.example.com",[205,426,97],{"id":97},[11,428,100,429,431,432,435,436,439],{},[15,430,97],{}," fields on ",[15,433,434],{},"oneOf","\u002F",[15,437,438],{},"anyOf"," schemas are interpreted.",[25,441,442,450],{},[28,443,444],{},[31,445,446,448],{},[34,447],{},[34,449],{},[41,451,452,461,469],{},[31,453,454,456],{},[46,455,248],{},[46,457,458],{},[15,459,460],{},"'preserve' | 'propagate'",[31,462,463,465],{},[46,464,258],{},[46,466,467],{},[15,468,223],{},[31,470,471,473],{},[46,472,267],{},[46,474,475],{},[15,476,477],{},"'preserve'",[479,480,481,485],"field-group",{},[482,483,484],"field",{"name":477},"Keeps child schemas exactly as written, though the discriminator still narrows types at the call site.",[482,486,488,489,492],{"name":487},"'propagate'","Pushes the discriminator property with its literal value into each child schema, so each branch's ",[15,490,491],{},"type"," field is precisely typed.",[494,495,496,801,893],"code-group",{},[497,498,503],"pre",{"language":499,"filename":500,"code":501,"class":502},"yaml","OpenAPI spec","openapi: 3.0.3\ncomponents:\n  schemas:\n    Animal:\n      required: [type]\n      type: object\n      oneOf:\n        - $ref: '#\u002Fcomponents\u002Fschemas\u002FCat'\n        - $ref: '#\u002Fcomponents\u002Fschemas\u002FDog'\n      discriminator:\n        propertyName: type\n        mapping:\n          cat: '#\u002Fcomponents\u002Fschemas\u002FCat'\n          dog: '#\u002Fcomponents\u002Fschemas\u002FDog'\n    Cat:\n      type: object\n      properties:\n        type: { type: string }\n        indoor: { type: boolean }\n    Dog:\n      type: object\n      properties:\n        type: { type: string }\n        name: { type: string }","highlights",[15,504,506,522,523,522,531,522,541,522,551,522,570,522,581,522,589,522,602,522,617,522,625,522,636,522,645,522,657,522,668,522,677,522,687,522,696,522,717,522,737,522,746,522,756,522,764,522,782],{"class":505},"language-yaml",[507,508,511,515,519],"span",{"class":509,"style":510},"line","display: inline",[507,512,514],{"style":513},"color:#005cc5;--hls-dark:#79b8ff","openapi",[507,516,518],{"style":517},"color:#d73a49;--hls-dark:#f97583",": ",[507,520,521],{"style":513},"3.0.3","\n",[507,524,525,528],{"class":509,"style":510},[507,526,527],{"style":513},"components",[507,529,530],{"style":517},":",[507,532,533,536,539],{"class":509,"style":510},[507,534,535],{"style":517},"  ",[507,537,538],{"style":513},"schemas",[507,540,530],{"style":517},[507,542,543,546,549],{"class":509,"style":510},[507,544,545],{"style":517},"    ",[507,547,548],{"style":513},"Animal",[507,550,530],{"style":517},[507,552,553,556,559,561,564,567],{"class":509,"style":510},[507,554,555],{"style":517},"      ",[507,557,558],{"style":513},"required",[507,560,518],{"style":517},[507,562,563],{"style":513},"[",[507,565,491],{"style":566},"color:#032f62;--hls-dark:#9ecbff",[507,568,569],{"style":513},"]",[507,571,572,574,576,578],{"class":509,"style":510},[507,573,555],{"style":513},[507,575,491],{"style":513},[507,577,518],{"style":517},[507,579,580],{"style":566},"object",[507,582,583,585,587],{"class":509,"style":510},[507,584,555],{"style":566},[507,586,434],{"style":513},[507,588,530],{"style":517},[507,590,591,594,597,599],{"class":509,"style":510},[507,592,593],{"style":517},"        - ",[507,595,596],{"style":513},"$ref",[507,598,518],{"style":517},[507,600,601],{"style":566},"'#\u002Fcomponents\u002Fschemas\u002FCat'",[507,603,604,607,610,612,614],{"class":509,"style":510},[507,605,606],{"style":566},"        ",[507,608,609],{"style":517},"- ",[507,611,596],{"style":513},[507,613,518],{"style":517},[507,615,616],{"style":566},"'#\u002Fcomponents\u002Fschemas\u002FDog'",[507,618,619,621,623],{"class":509,"style":510},[507,620,555],{"style":566},[507,622,97],{"style":513},[507,624,530],{"style":517},[507,626,627,629,632,634],{"class":509,"style":510},[507,628,606],{"style":517},[507,630,631],{"style":513},"propertyName",[507,633,518],{"style":517},[507,635,491],{"style":566},[507,637,638,640,643],{"class":509,"style":510},[507,639,606],{"style":566},[507,641,642],{"style":513},"mapping",[507,644,530],{"style":517},[507,646,647,650,653,655],{"class":509,"style":510},[507,648,649],{"style":517},"          ",[507,651,652],{"style":513},"cat",[507,654,518],{"style":517},[507,656,601],{"style":566},[507,658,659,661,664,666],{"class":509,"style":510},[507,660,649],{"style":566},[507,662,663],{"style":513},"dog",[507,665,518],{"style":517},[507,667,616],{"style":566},[507,669,670,672,675],{"class":509,"style":510},[507,671,545],{"style":566},[507,673,674],{"style":513},"Cat",[507,676,530],{"style":517},[507,678,679,681,683,685],{"class":509,"style":510},[507,680,555],{"style":517},[507,682,491],{"style":513},[507,684,518],{"style":517},[507,686,580],{"style":566},[507,688,689,691,694],{"class":509,"style":510},[507,690,555],{"style":566},[507,692,693],{"style":513},"properties",[507,695,530],{"style":517},[507,697,698,700,702,704,707,709,711,714],{"class":509,"style":510},[507,699,606],{"style":517},[507,701,491],{"style":513},[507,703,518],{"style":517},[507,705,706],{"style":513},"{ ",[507,708,491],{"style":513},[507,710,518],{"style":517},[507,712,713],{"style":566},"string ",[507,715,716],{"style":513},"}",[507,718,719,721,724,726,728,730,732,735],{"class":509,"style":510},[507,720,606],{"style":513},[507,722,723],{"style":513},"indoor",[507,725,518],{"style":517},[507,727,706],{"style":513},[507,729,491],{"style":513},[507,731,518],{"style":517},[507,733,734],{"style":566},"boolean ",[507,736,716],{"style":513},[507,738,739,741,744],{"class":509,"style":510},[507,740,545],{"style":513},[507,742,743],{"style":513},"Dog",[507,745,530],{"style":517},[507,747,748,750,752,754],{"class":509,"style":510},[507,749,555],{"style":517},[507,751,491],{"style":513},[507,753,518],{"style":517},[507,755,580],{"style":566},[507,757,758,760,762],{"class":509,"style":510},[507,759,555],{"style":566},[507,761,693],{"style":513},[507,763,530],{"style":517},[507,765,766,768,770,772,774,776,778,780],{"class":509,"style":510},[507,767,606],{"style":517},[507,769,491],{"style":513},[507,771,518],{"style":517},[507,773,706],{"style":513},[507,775,491],{"style":513},[507,777,518],{"style":517},[507,779,713],{"style":566},[507,781,716],{"style":513},[507,783,784,786,789,791,793,795,797,799],{"class":509,"style":510},[507,785,606],{"style":513},[507,787,788],{"style":513},"name",[507,790,518],{"style":517},[507,792,706],{"style":513},[507,794,491],{"style":513},[507,796,518],{"style":517},[507,798,713],{"style":566},[507,800,716],{"style":513},[497,802,806],{"language":803,"filename":804,"code":805,"class":502},"typescript","'preserve' (default)","export type Cat = { type: string; indoor?: boolean }\nexport type Dog = { type: string; name?: string }\nexport type Animal = Cat | Dog",[15,807,809,522,846,522,875],{"class":808},"language-typescript",[507,810,811,814,817,821,824,826,828,831,834,837,839,842,844],{"class":509,"style":510},[507,812,813],{"style":517},"export ",[507,815,816],{"style":517},"type ",[507,818,820],{"style":819},"color:#6f42c1;--hls-dark:#b392f0","Cat ",[507,822,823],{"style":517},"= ",[507,825,706],{"style":513},[507,827,491],{"style":513},[507,829,518],{"style":830},"color:#24292e;--hls-dark:#e1e4e8",[507,832,833],{"style":819},"string",[507,835,836],{"style":517},"; ",[507,838,723],{"style":513},[507,840,841],{"style":830},"?: ",[507,843,734],{"style":819},[507,845,716],{"style":513},[507,847,848,850,852,855,857,859,861,863,865,867,869,871,873],{"class":509,"style":510},[507,849,813],{"style":517},[507,851,816],{"style":517},[507,853,854],{"style":819},"Dog ",[507,856,823],{"style":517},[507,858,706],{"style":513},[507,860,491],{"style":513},[507,862,518],{"style":830},[507,864,833],{"style":819},[507,866,836],{"style":517},[507,868,788],{"style":513},[507,870,841],{"style":830},[507,872,713],{"style":819},[507,874,716],{"style":513},[507,876,877,879,881,884,886,888,891],{"class":509,"style":510},[507,878,813],{"style":517},[507,880,816],{"style":517},[507,882,883],{"style":819},"Animal ",[507,885,823],{"style":517},[507,887,820],{"style":819},[507,889,890],{"style":517},"| ",[507,892,743],{"style":819},[497,894,896],{"language":803,"filename":487,"code":895,"class":502},"export type Cat = { type: 'cat'; indoor?: boolean }\nexport type Dog = { type: 'dog'; name?: string }\nexport type Animal = Cat | Dog",[15,897,898,522,927,522,956],{"class":808},[507,899,900,902,904,906,908,910,912,914,917,919,921,923,925],{"class":509,"style":510},[507,901,813],{"style":517},[507,903,816],{"style":517},[507,905,820],{"style":819},[507,907,823],{"style":517},[507,909,706],{"style":513},[507,911,491],{"style":513},[507,913,518],{"style":517},[507,915,916],{"style":566},"'cat'",[507,918,836],{"style":517},[507,920,723],{"style":513},[507,922,841],{"style":830},[507,924,734],{"style":819},[507,926,716],{"style":513},[507,928,929,931,933,935,937,939,941,943,946,948,950,952,954],{"class":509,"style":510},[507,930,813],{"style":517},[507,932,816],{"style":517},[507,934,854],{"style":819},[507,936,823],{"style":517},[507,938,706],{"style":513},[507,940,491],{"style":513},[507,942,518],{"style":517},[507,944,945],{"style":566},"'dog'",[507,947,836],{"style":517},[507,949,788],{"style":513},[507,951,841],{"style":830},[507,953,713],{"style":819},[507,955,716],{"style":513},[507,957,958,960,962,964,966,968,970],{"class":509,"style":510},[507,959,813],{"style":517},[507,961,816],{"style":517},[507,963,883],{"style":819},[507,965,823],{"style":517},[507,967,820],{"style":819},[507,969,890],{"style":517},[507,971,743],{"style":819},[205,973,113],{"id":113},[11,975,116],{},[25,977,978,986],{},[28,979,980],{},[31,981,982,984],{},[34,983],{},[34,985],{},[41,987,988,997,1005],{},[31,989,990,992],{},[46,991,248],{},[46,993,994],{},[15,995,996],{},"'inline' | 'root'",[31,998,999,1001],{},[46,1000,258],{},[46,1002,1003],{},[15,1004,223],{},[31,1006,1007,1009],{},[46,1008,267],{},[46,1010,1011],{},[15,1012,1013],{},"'inline'",[479,1015,1016,1019],{},[482,1017,1018],{"name":1013},"Keeps each enum on the property that declares it.",[482,1020,1022,1023,1026],{"name":1021},"'root'","Lifts every inline enum to a reusable top-level schema named after its context (for example ",[15,1024,1025],{},"PetStatusEnum",") and references it wherever it appears.",[11,1028,1029,1030,156,1033,1036,1037,530],{},"For an enum with values ",[15,1031,1032],{},"active",[15,1034,1035],{},"inactive"," on ",[15,1038,1039],{},"Pet.status",[494,1041,1042,1079],{},[497,1043,1046],{"language":803,"filename":1044,"code":1045,"class":502},"'inline' (default)","export type Pet = { status?: 'active' | 'inactive' }",[15,1047,1048],{"class":808},[507,1049,1050,1052,1054,1057,1059,1061,1064,1067,1069,1072,1074,1077],{"class":509,"style":510},[507,1051,813],{"style":517},[507,1053,816],{"style":517},[507,1055,1056],{"style":819},"Pet ",[507,1058,823],{"style":517},[507,1060,706],{"style":513},[507,1062,1063],{"style":513},"status",[507,1065,1066],{"style":830},"?",[507,1068,518],{"style":517},[507,1070,1071],{"style":566},"'active' ",[507,1073,890],{"style":517},[507,1075,1076],{"style":566},"'inactive' ",[507,1078,716],{"style":513},[497,1080,1082],{"language":803,"filename":1021,"code":1081,"class":502},"export type PetStatusEnum = 'active' | 'inactive'\nexport type Pet = { status?: PetStatusEnum }",[15,1083,1084,522,1102],{"class":808},[507,1085,1086,1088,1090,1093,1095,1097,1099],{"class":509,"style":510},[507,1087,813],{"style":517},[507,1089,816],{"style":517},[507,1091,1092],{"style":819},"PetStatusEnum ",[507,1094,823],{"style":517},[507,1096,1071],{"style":566},[507,1098,890],{"style":517},[507,1100,1101],{"style":566},"'inactive'",[507,1103,1104,1106,1108,1110,1112,1114,1116,1118,1120],{"class":509,"style":510},[507,1105,813],{"style":517},[507,1107,816],{"style":517},[507,1109,1056],{"style":819},[507,1111,823],{"style":517},[507,1113,706],{"style":513},[507,1115,1063],{"style":513},[507,1117,841],{"style":830},[507,1119,1092],{"style":819},[507,1121,716],{"style":513},[205,1123,126],{"id":1124},"datetype",[11,1126,100,1127,132,1129,136,1131,1133],{},[15,1128,131],{},[15,1130,135],{},[15,1132,139],{}," schemas are represented downstream.",[25,1135,1136,1144],{},[28,1137,1138],{},[31,1139,1140,1142],{},[34,1141],{},[34,1143],{},[41,1145,1146,1155,1163],{},[31,1147,1148,1150],{},[46,1149,248],{},[46,1151,1152],{},[15,1153,1154],{},"false | 'string' | 'stringOffset' | 'stringLocal' | 'date' | { dateTime?, date?, time? }",[31,1156,1157,1159],{},[46,1158,258],{},[46,1160,1161],{},[15,1162,223],{},[31,1164,1165,1167],{},[46,1166,267],{},[46,1168,1169],{},[15,1170,1171],{},"'string'",[11,1173,1174],{},"Pass a single value to apply it to all three formats:",[479,1176,1177,1180,1192,1205,1217],{},[482,1178,1179],{"name":223},"Represents date and time values as plain strings without format validation.",[482,1181,1182,1183,132,1185,136,1187,1189,1190,87],{"name":1171},"Represents ",[15,1184,131],{},[15,1186,135],{},[15,1188,139],{}," as ISO 8601 strings. The generated TypeScript type is ",[15,1191,833],{},[482,1193,1182,1195,1197,1198,156,1200,1202,1203,87],{"name":1194},"'stringOffset'",[15,1196,131],{}," as a string with a timezone offset. The ",[15,1199,135],{},[15,1201,139],{}," formats fall back to ",[15,1204,1171],{},[482,1206,1182,1208,1210,1211,156,1213,1202,1215,87],{"name":1207},"'stringLocal'",[15,1209,131],{}," as a local string without a timezone. The ",[15,1212,135],{},[15,1214,139],{},[15,1216,1171],{},[482,1218,1220,1221,1224,1225,1227],{"name":1219},"'date'","Represents date and time values as JavaScript ",[15,1222,1223],{},"Date"," objects. JSON values need parsing to revive them as ",[15,1226,1223],{}," objects.",[11,1229,1230,1231,1233,1234,1237],{},"The string variants all emit ",[15,1232,833],{}," at the TypeScript type level. Schema plugins such as ",[15,1235,1236],{},"@kubb\u002Fplugin-zod"," validate the offset or local format.",[11,1239,1240,1241,132,1244,136,1246,1248,1249,1251],{},"Pass an object to set ",[15,1242,1243],{},"dateTime",[15,1245,135],{},[15,1247,139],{}," independently. A key you leave out defaults to ",[15,1250,1171],{},", regardless of the other keys.",[497,1253,1256],{"language":1254,"code":1255,"class":502},"ts","adapterOas({\n  dateType: {\n    dateTime: 'date', \u002F\u002F Date object for timestamps\n    date: 'string',\n    time: 'string',\n  },\n})",[15,1257,1259,522,1267,522,1278,522,1294,522,1307,522,1319,522,1327],{"class":1258},"language-ts",[507,1260,1261,1264],{"class":509,"style":510},[507,1262,1263],{"style":819},"adapterOas",[507,1265,1266],{"style":513},"({",[507,1268,1269,1271,1273,1275],{"class":509,"style":510},[507,1270,535],{"style":513},[507,1272,126],{"style":513},[507,1274,518],{"style":517},[507,1276,1277],{"style":513},"{",[507,1279,1280,1282,1284,1286,1288,1290],{"class":509,"style":510},[507,1281,545],{"style":513},[507,1283,1243],{"style":513},[507,1285,518],{"style":517},[507,1287,1219],{"style":566},[507,1289,132],{"style":517},[507,1291,1293],{"style":1292},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F Date object for timestamps",[507,1295,1296,1298,1300,1302,1304],{"class":509,"style":510},[507,1297,545],{"style":1292},[507,1299,135],{"style":513},[507,1301,518],{"style":517},[507,1303,1171],{"style":566},[507,1305,1306],{"style":517},",",[507,1308,1309,1311,1313,1315,1317],{"class":509,"style":510},[507,1310,545],{"style":517},[507,1312,139],{"style":513},[507,1314,518],{"style":517},[507,1316,1171],{"style":566},[507,1318,1306],{"style":517},[507,1320,1321,1323,1325],{"class":509,"style":510},[507,1322,535],{"style":517},[507,1324,716],{"style":513},[507,1326,1306],{"style":517},[507,1328,1329],{"class":509,"style":510},[507,1330,1331],{"style":513},"})",[205,1333,150],{"id":1334},"integertype",[11,1336,1337,1338,1341,1342,1345,1346,1349,1350,1353,1354,87],{},"How a schema with ",[15,1339,1340],{},"format: int64"," or ",[15,1343,1344],{},"format: uint64"," maps to TypeScript. Other integers, such as ",[15,1347,1348],{},"type: integer"," without a format or with ",[15,1351,1352],{},"format: int32",", always map to ",[15,1355,1356],{},"number",[25,1358,1359,1367],{},[28,1360,1361],{},[31,1362,1363,1365],{},[34,1364],{},[34,1366],{},[41,1368,1369,1378,1386],{},[31,1370,1371,1373],{},[46,1372,248],{},[46,1374,1375],{},[15,1376,1377],{},"'number' | 'bigint'",[31,1379,1380,1382],{},[46,1381,258],{},[46,1383,1384],{},[15,1385,223],{},[31,1387,1388,1390],{},[46,1389,267],{},[46,1391,1392],{},[15,1393,1394],{},"'bigint'",[479,1396,1397,1407],{},[482,1398,1399,1400,156,1403,1406],{"name":1394},"Represents 64-bit IDs exactly, but ",[15,1401,1402],{},"JSON.stringify",[15,1404,1405],{},"JSON.parse"," cannot round-trip it. Use it only when you handle bigint serialization yourself.",[482,1408,1410,1411,87],{"name":1409},"'number'","Fits most JSON APIs. It loses precision above ",[15,1412,1413],{},"Number.MAX_SAFE_INTEGER",[11,1415,1416,1417,1420,1421,1423,1424,1427,1428,1432,1433,1435,1436,1438,1439,1442],{},"A schema with ",[15,1418,1419],{},"type: string"," stays a ",[15,1422,833],{}," whatever its ",[15,1425,1426],{},"format",", so the ",[49,1429,1431],{"href":1430},"https:\u002F\u002Fprotobuf.dev\u002Fprogramming-guides\u002Fjson\u002F#int64-strings","ProtoJSON"," ",[15,1434,155],{}," strings that gRPC-gateway emits stay strings. ",[15,1437,1236],{}," validates them with a digits regex, and ",[15,1440,1441],{},"@kubb\u002Fplugin-faker"," mocks them as numeric strings.",[205,1444,170],{"id":1445},"unknowntype",[11,1447,1448,1449,1452,1453,1455],{},"AST type used when a schema's type cannot be inferred from the spec (",[15,1450,1451],{},"additionalProperties: true",", a missing ",[15,1454,491],{},", and similar).",[25,1457,1458,1466],{},[28,1459,1460],{},[31,1461,1462,1464],{},[34,1463],{},[34,1465],{},[41,1467,1468,1477,1485],{},[31,1469,1470,1472],{},[46,1471,248],{},[46,1473,1474],{},[15,1475,1476],{},"'any' | 'unknown' | 'void'",[31,1478,1479,1481],{},[46,1480,258],{},[46,1482,1483],{},[15,1484,223],{},[31,1486,1487,1489],{},[46,1488,267],{},[46,1490,1491],{},[15,1492,1493],{},"'unknown'",[479,1495,1496,1499,1503],{},[482,1497,1498],{"name":1493},"Requires callers to narrow the value before using it.",[482,1500,1502],{"name":1501},"'any'","Allows callers to use the value without type checking.",[482,1504,1506,1507,87],{"name":1505},"'void'","Represents a value callers should not use. Choose it when matching a legacy API that uses ",[15,1508,1509],{},"void",[205,1511,183],{"id":1512},"emptyschematype",[11,1514,1515,1516,1519,1520,1524],{},"AST type used for empty schemas (",[15,1517,1518],{},"{}","). It takes the same values as ",[49,1521,1522],{"href":167},[15,1523,170],{}," and follows it unless you set it.",[25,1526,1527,1535],{},[28,1528,1529],{},[31,1530,1531,1533],{},[34,1532],{},[34,1534],{},[41,1536,1537,1545,1553],{},[31,1538,1539,1541],{},[46,1540,248],{},[46,1542,1543],{},[15,1544,1476],{},[31,1546,1547,1549],{},[46,1548,258],{},[46,1550,1551],{},[15,1552,223],{},[31,1554,1555,1557],{},[46,1556,267],{},[46,1558,1559,1561,1562,1564],{},[15,1560,170],{}," (",[15,1563,1493],{}," by default)",[1566,1567,1569,1570,1573,1574,1577],"blockquote",{"as":1568},"tip","A common pairing sets ",[15,1571,1572],{},"unknownType: 'unknown'"," for safety and ",[15,1575,1576],{},"emptySchemaType: 'any'"," so empty 204 response bodies stay easy to use.",[205,1579,196],{"id":1580},"enumsuffix",[11,1582,1583,1584,1586,1587,1590,1591,1593,1594,1597,1598,87],{},"Suffix for the names Kubb gives inline enums: schema name, property name, and suffix, in PascalCase. The ",[15,1585,1063],{}," enum on ",[15,1588,1589],{},"Pet"," becomes ",[15,1592,1025],{},", or ",[15,1595,1596],{},"PetStatusType"," with ",[15,1599,1600],{},"enumSuffix: 'type'",[25,1602,1603,1611],{},[28,1604,1605],{},[31,1606,1607,1609],{},[34,1608],{},[34,1610],{},[41,1612,1613,1621,1629],{},[31,1614,1615,1617],{},[46,1616,248],{},[46,1618,1619],{},[15,1620,833],{},[31,1622,1623,1625],{},[46,1624,258],{},[46,1626,1627],{},[15,1628,223],{},[31,1630,1631,1633],{},[46,1632,267],{},[46,1634,1635],{},[15,1636,1637],{},"'enum'",{"title":1639,"searchDepth":1640,"depth":1640,"links":1641},"",5,[1642,1644],{"id":22,"depth":1643,"text":23},2,{"id":202,"depth":1643,"text":203,"children":1645},[1646,1648,1649,1650,1651,1652,1653,1654,1655,1656],{"id":54,"depth":1647,"text":54},3,{"id":275,"depth":1647,"text":67},{"id":80,"depth":1647,"text":80},{"id":97,"depth":1647,"text":97},{"id":113,"depth":1647,"text":113},{"id":1124,"depth":1647,"text":126},{"id":1334,"depth":1647,"text":150},{"id":1445,"depth":1647,"text":170},{"id":1512,"depth":1647,"text":183},{"id":1580,"depth":1647,"text":196},"\u002Fextensions\u002Fkubb-labs\u002Fadapter-oas\u002Foptions",1793639044730]