Commit e68b69f
authored
fix!: query param serialization/parsing (#381)
respect the `style` and `explode` modifiers on `in: query` parameters.
this is required to generate working clients for
https://github.com/typesense/typesense-api-spec for example, as it
defines the query parameters as a single object that should be
"exploded" (eg: flattened) to multiple parameters.
removes the `qs` dependency in favor of our own parsing / serialization
based on the `style` + `explode` modifiers.
in addition to the e2e tests in this repository, I've tested the
generated clients e2e against a typesense server, which previously
didn't work.1 parent 7c4bacb commit e68b69f
File tree
66 files changed
+28400
-4934
lines changed- e2e
- src
- generated
- client
- axios
- fetch
- server
- express
- routes
- koa
- routes
- routes
- express
- koa
- integration-tests
- typescript-angular/src/generated
- api.github.com.yaml
- azure-core-data-plane-service.tsp
- azure-resource-manager.tsp
- okta.idp.yaml
- okta.oauth.yaml
- petstore-expanded.yaml
- stripe.yaml
- todo-lists.yaml
- typescript-axios/src/generated
- api.github.com.yaml
- azure-core-data-plane-service.tsp
- petstore-expanded.yaml
- stripe.yaml
- todo-lists.yaml
- typescript-express/src/generated/stripe.yaml
- typescript-fetch/src/generated
- api.github.com.yaml
- azure-core-data-plane-service.tsp
- petstore-expanded.yaml
- stripe.yaml
- todo-lists.yaml
- typescript-koa/src/generated/stripe.yaml
- packages
- documentation/src/app
- getting-started/tips-for-writing-specifications
- guides/concepts/content-type
- overview/compatibility
- openapi-code-generator
- src
- core
- typescript
- client
- typescript-angular
- typescript-axios
- typescript-fetch
- server
- typescript-express
- typescript-koa
- typescript-axios-runtime
- src
- typescript-common-runtime
- src
- typescript-express-runtime/src
- typescript-fetch-runtime
- src
- typescript-koa-runtime
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
66 files changed
+28400
-4934
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 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 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 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 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
57 | 199 | | |
58 | 200 | | |
59 | 201 | | |
| |||
127 | 269 | | |
128 | 270 | | |
129 | 271 | | |
| 272 | + | |
130 | 273 | | |
131 | 274 | | |
132 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
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