Cookie parameters
- Exploded
formcookies are sent ascolor=blue&color=blackandR=100&G=200, instead of repeating the name ascolor=color=blue&color=blackor splitting an object into separate cookies. style: cookieis supported: values are sent as given and joined by;.- Code usages percent-encode
formcookie values like the playground.
Encode path parameters
- The playground and code usages percent-encode path parameter values, so
#,?,/or a space in a value no longer cuts the request URL short or sends it to another path.
Form bodies keep their fields
application/x-www-form-urlencodedbodies keep0,falseand empty fields in code usages, leave out unset fields instead of sending"null", repeat the key for each array item and send objects as JSON, likemultipart/form-data.- The playground and the code usages of every language send the same form body.
Multipart arrays in code usages
- Code usages of
multipart/form-databodies send one part for each item of an array, like the playground, instead of the whole array as JSON in one part. - Object fields are sent as compact JSON, like the playground.
Response examples without write-only fields
- Response examples generated from a schema leave out
writeOnlyproperties, like the response schema and its TypeScript definitions already do.
Ruby code usages
- Operation pages and the playground show a Ruby code usage, with
Net::HTTPfrom the standard library. Every body media type is supported, multipart bodies are sent withset_form. fumadocs-openapi/requests/generators/rubyexports the generator.