Commit 0aecf2a
authored
feat: support application/x-www-form-urlencoded request bodies (#352)
adds support for `application/x-www-form-urlencoded` request bodies,
including the `encoding` property to customize the serialization of
object and array values.
it's implemented for `typescript-fetch` and `typescript-axios` with
partial support on the server templates (they don't currently understand
encoding, so its a bit of pot-luck whether they'll accurately
de-serialize the data)
later we'll extract some of the duplicated code into a new core runtime
package, as there's an increasingly large body of code that is shared
between the different runtimes.
additionally improves handling of optional request bodies, particularly
in the case that the consuming project has `exactOptionalPropertyTypes`
enabled. This is currently more correct on the `typescript-fetch`
template, due to some quirks of `axios` - see skipped `e2e` tests for
details.1 parent 032e5c2 commit 0aecf2a
58 files changed
Lines changed: 182796 additions & 20735 deletions
File tree
- e2e
- src
- generated
- client
- axios
- fetch
- server
- express
- routes
- koa
- routes
- routes
- express
- koa
- integration-tests
- typescript-angular/src/generated/api.github.com.yaml
- typescript-axios/src/generated
- api.github.com.yaml
- okta.oauth.yaml
- stripe.yaml
- typescript-express/src/generated
- okta.oauth.yaml
- stripe.yaml
- typescript-fetch/src/generated
- api.github.com.yaml
- okta.oauth.yaml
- stripe.yaml
- typescript-koa/src/generated
- okta.oauth.yaml
- stripe.yaml
- packages
- documentation/src/app/guides/concepts/content-type
- openapi-code-generator/src
- core
- typescript
- client
- typescript-angular
- typescript-axios
- typescript-fetch
- common
- server
- typescript-axios-runtime/src
- request-bodies
- typescript-express-runtime/src
- typescript-fetch-runtime/src
- request-bodies
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
104 | 130 | | |
105 | 131 | | |
106 | 132 | | |
107 | 133 | | |
108 | 134 | | |
109 | 135 | | |
110 | 136 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 137 | | |
123 | 138 | | |
124 | 139 | | |
| |||
144 | 159 | | |
145 | 160 | | |
146 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
147 | 195 | | |
148 | 196 | | |
149 | 197 | | |
| |||
194 | 242 | | |
195 | 243 | | |
196 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments