[{"data":1,"prerenderedAt":466},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fserialization":3},{"id":4,"title":5,"body":6,"description":450,"extension":451,"frontmatter":452,"heading":5,"meta":458,"navigation":459,"order":455,"path":460,"seo":461,"sitemap":462,"source":463,"stem":464,"__hash__":465},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fserialization.md","HTTP serialization",{"type":7,"value":8,"toc":439},"minimark",[9,13,18,23,43,172,191,195,219,315,319,338,431],[10,11,12],"p",{},"Fetch and Axios clients use the OpenAPI operation's serialization metadata to encode path, query, header, and cookie parameters.",[14,15,17],"h2",{"id":16},"parameter-styles","Parameter styles",[19,20,22],"h3",{"id":21},"query","Query",[10,24,25,26,30,31,34,35,38,39,42],{},"Query parameters default to the ",[27,28,29],"code",{},"form"," style. Arrays explode into repeated keys unless the spec\nsays otherwise, and ",[27,32,33],{},"spaceDelimited",", ",[27,36,37],{},"pipeDelimited",", and ",[27,40,41],{},"deepObject"," change how arrays and\nobjects collapse.",[44,45,46,67],"table",{},[47,48,49],"thead",{},[50,51,52,56,61,64],"tr",{},[53,54,55],"th",{},"Style",[53,57,58],{},[27,59,60],{},"explode",[53,62,63],{},"Input",[53,65,66],{},"Result",[68,69,70,93,113,132,151],"tbody",{},[50,71,72,78,83,88],{},[73,74,75,77],"td",{},[27,76,29],{}," (default)",[73,79,80],{},[27,81,82],{},"true",[73,84,85],{},[27,86,87],{},"{ id: [3, 4, 5] }",[73,89,90],{},[27,91,92],{},"id=3&id=4&id=5",[50,94,95,99,104,108],{},[73,96,97],{},[27,98,29],{},[73,100,101],{},[27,102,103],{},"false",[73,105,106],{},[27,107,87],{},[73,109,110],{},[27,111,112],{},"id=3,4,5",[50,114,115,119,123,127],{},[73,116,117],{},[27,118,33],{},[73,120,121],{},[27,122,103],{},[73,124,125],{},[27,126,87],{},[73,128,129],{},[27,130,131],{},"id=3%204%205",[50,133,134,138,142,146],{},[73,135,136],{},[27,137,37],{},[73,139,140],{},[27,141,103],{},[73,143,144],{},[27,145,87],{},[73,147,148],{},[27,149,150],{},"id=3|4|5",[50,152,153,157,162,167],{},[73,154,155],{},[27,156,41],{},[73,158,159],{},[27,160,161],{},"n\u002Fa",[73,163,164],{},[27,165,166],{},"{ a: { b: 1 } }",[73,168,169],{},[27,170,171],{},"a%5Bb%5D=1",[10,173,174,175,34,178,180,181,183,184,186,187,190],{},"With ",[27,176,177],{},"explode: true",[27,179,33],{}," and ",[27,182,37],{}," fall back to repeated keys like ",[27,185,29],{},",\nso the delimiter only shows with ",[27,188,189],{},"explode: false",".",[19,192,194],{"id":193},"path","Path",[10,196,197,198,201,202,205,206,180,208,211,212,215,216,190],{},"Path parameters default to the ",[27,199,200],{},"simple"," style, which emits the bare value. ",[27,203,204],{},"label"," prefixes a\n",[27,207,190],{},[27,209,210],{},"matrix"," prefixes a ",[27,213,214],{},";name="," segment. The results below are the serialized segment for a\nparameter named ",[27,217,218],{},"id",[44,220,221,235],{},[47,222,223],{},[50,224,225,227,231,233],{},[53,226,55],{},[53,228,229],{},[27,230,60],{},[53,232,63],{},[53,234,66],{},[68,236,237,257,276,295],{},[50,238,239,243,247,252],{},[73,240,241,77],{},[27,242,200],{},[73,244,245],{},[27,246,103],{},[73,248,249],{},[27,250,251],{},"[3, 4, 5]",[73,253,254],{},[27,255,256],{},"3,4,5",[50,258,259,263,267,271],{},[73,260,261],{},[27,262,204],{},[73,264,265],{},[27,266,82],{},[73,268,269],{},[27,270,251],{},[73,272,273],{},[27,274,275],{},".3.4.5",[50,277,278,282,286,290],{},[73,279,280],{},[27,281,210],{},[73,283,284],{},[27,285,82],{},[73,287,288],{},[27,289,251],{},[73,291,292],{},[27,293,294],{},";id=3;id=4;id=5",[50,296,297,301,305,310],{},[73,298,299],{},[27,300,200],{},[73,302,303],{},[27,304,103],{},[73,306,307],{},[27,308,309],{},"{ x: 1, y: 2 }",[73,311,312],{},[27,313,314],{},"x,1,y,2",[19,316,318],{"id":317},"header-and-cookie","Header and cookie",[10,320,321,322,324,325,327,328,330,331,333,334,337],{},"Header parameters use the ",[27,323,200],{}," style and cookie parameters use the ",[27,326,29],{}," style. Both fix the\nstyle and only let ",[27,329,60],{}," vary, so the metadata for these locations carries ",[27,332,60],{}," alone.\nHeader values are sent as-is, and cookie values are URL-encoded into a single ",[27,335,336],{},"Cookie"," header.",[44,339,340,355],{},[47,341,342],{},[50,343,344,347,351,353],{},[53,345,346],{},"Location",[53,348,349],{},[27,350,60],{},[53,352,63],{},[53,354,66],{},[68,356,357,376,394,413],{},[50,358,359,362,366,371],{},[73,360,361],{},"header",[73,363,364],{},[27,365,103],{},[73,367,368],{},[27,369,370],{},"[3, 4]",[73,372,373],{},[27,374,375],{},"X-Ids: 3,4",[50,377,378,380,384,389],{},[73,379,361],{},[73,381,382],{},[27,383,82],{},[73,385,386],{},[27,387,388],{},"{ role: 'admin' }",[73,390,391],{},[27,392,393],{},"X-Filter: role=admin",[50,395,396,399,403,408],{},[73,397,398],{},"cookie",[73,400,401],{},[27,402,103],{},[73,404,405],{},[27,406,407],{},"{ session: 'abc', ids: [1, 2] }",[73,409,410],{},[27,411,412],{},"session=abc; ids=1,2",[50,414,415,417,421,426],{},[73,416,398],{},[73,418,419],{},[27,420,82],{},[73,422,423],{},[27,424,425],{},"{ ids: [1, 2] }",[73,427,428],{},[27,429,430],{},"ids=1; ids=2",[10,432,433,434,190],{},"For custom serializers, body codecs, response decoding, and validation, see ",[435,436,438],"a",{"href":437},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-fetch\u002Fguides\u002Fserialization","Configure serialization",{"title":440,"searchDepth":441,"depth":441,"links":442},"",5,[443],{"id":16,"depth":444,"text":17,"children":445},2,[446,448,449],{"id":21,"depth":447,"text":22},3,{"id":193,"depth":447,"text":194},{"id":317,"depth":447,"text":318},"Default parameter styles and serialized values for generated Fetch and Axios clients.","md",{"layout":453,"title":5,"description":450,"outline":454,"order":455,"navigation":456},"doc","deep",9,{"title":5,"icon":457},"i-iconoir-network",{"layout":453,"outline":454},{"title":5,"icon":457},"\u002Fdocs\u002F5.x\u002Freference\u002Fserialization",{"title":5,"description":450},{"loc":460},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fserialization.md","docs\u002F5.x\u002Freference\u002Fserialization","bl0BzuBhA8CVyYJ30AKACiHZb-186t65yKaQKtO_7Ds",1792931643074]