Commit 8822002
style: simplify and modernize (oapi-codegen#2305)
* style: simplify and modernize
Signed-off-by: Gaiaz Iusipov <g.iusipov@gmail.com>
* revert: adding compile-time checks
Signed-off-by: Gaiaz Iusipov <g.iusipov@gmail.com>
---------
Signed-off-by: Gaiaz Iusipov <g.iusipov@gmail.com>
Co-authored-by: Marcin Romaszewicz <mromaszewicz@users.noreply.github.com>1 parent e126f5a commit 8822002
19 files changed
Lines changed: 136 additions & 171 deletions
File tree
- examples
- authenticated-api/stdhttp/api
- minimal-server/stdhttp/api
- petstore-expanded/stdhttp/api
- internal/test
- issues
- issue-1963
- issue-2190
- issue-2232
- strict-server/stdhttp
- pkg/codegen
- templates/stdhttp
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.
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.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 108 | + | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
255 | 254 | | |
256 | 255 | | |
257 | 256 | | |
258 | | - | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
626 | 625 | | |
627 | 626 | | |
628 | 627 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
| 628 | + | |
634 | 629 | | |
635 | 630 | | |
636 | 631 | | |
| |||
944 | 939 | | |
945 | 940 | | |
946 | 941 | | |
947 | | - | |
| 942 | + | |
948 | 943 | | |
949 | 944 | | |
950 | 945 | | |
| |||
1243 | 1238 | | |
1244 | 1239 | | |
1245 | 1240 | | |
1246 | | - | |
| 1241 | + | |
1247 | 1242 | | |
1248 | 1243 | | |
1249 | 1244 | | |
1250 | 1245 | | |
1251 | 1246 | | |
1252 | 1247 | | |
1253 | | - | |
| 1248 | + | |
1254 | 1249 | | |
1255 | 1250 | | |
1256 | 1251 | | |
| |||
1263 | 1258 | | |
1264 | 1259 | | |
1265 | 1260 | | |
1266 | | - | |
| 1261 | + | |
1267 | 1262 | | |
1268 | 1263 | | |
1269 | 1264 | | |
| |||
1272 | 1267 | | |
1273 | 1268 | | |
1274 | 1269 | | |
1275 | | - | |
| 1270 | + | |
1276 | 1271 | | |
1277 | 1272 | | |
1278 | 1273 | | |
| |||
1281 | 1276 | | |
1282 | 1277 | | |
1283 | 1278 | | |
1284 | | - | |
| 1279 | + | |
1285 | 1280 | | |
1286 | 1281 | | |
1287 | 1282 | | |
| |||
1316 | 1311 | | |
1317 | 1312 | | |
1318 | 1313 | | |
1319 | | - | |
| 1314 | + | |
1320 | 1315 | | |
1321 | 1316 | | |
1322 | 1317 | | |
| |||
1343 | 1338 | | |
1344 | 1339 | | |
1345 | 1340 | | |
1346 | | - | |
| 1341 | + | |
1347 | 1342 | | |
1348 | 1343 | | |
1349 | 1344 | | |
1350 | 1345 | | |
1351 | 1346 | | |
1352 | 1347 | | |
1353 | | - | |
| 1348 | + | |
1354 | 1349 | | |
1355 | 1350 | | |
1356 | 1351 | | |
| |||
1371 | 1366 | | |
1372 | 1367 | | |
1373 | 1368 | | |
1374 | | - | |
| 1369 | + | |
1375 | 1370 | | |
1376 | 1371 | | |
1377 | 1372 | | |
| |||
1389 | 1384 | | |
1390 | 1385 | | |
1391 | 1386 | | |
1392 | | - | |
| 1387 | + | |
1393 | 1388 | | |
1394 | 1389 | | |
1395 | 1390 | | |
| |||
1408 | 1403 | | |
1409 | 1404 | | |
1410 | 1405 | | |
1411 | | - | |
| 1406 | + | |
1412 | 1407 | | |
1413 | 1408 | | |
1414 | 1409 | | |
| |||
1424 | 1419 | | |
1425 | 1420 | | |
1426 | 1421 | | |
1427 | | - | |
| 1422 | + | |
1428 | 1423 | | |
1429 | 1424 | | |
1430 | 1425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| |||
268 | 276 | | |
269 | 277 | | |
270 | 278 | | |
271 | | - | |
272 | | - | |
273 | 279 | | |
274 | | - | |
| 280 | + | |
275 | 281 | | |
276 | 282 | | |
277 | 283 | | |
| |||
296 | 302 | | |
297 | 303 | | |
298 | 304 | | |
299 | | - | |
300 | | - | |
| 305 | + | |
| 306 | + | |
301 | 307 | | |
302 | 308 | | |
| 309 | + | |
303 | 310 | | |
304 | 311 | | |
305 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
| |||
195 | 192 | | |
196 | 193 | | |
197 | 194 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
206 | 199 | | |
207 | 200 | | |
208 | 201 | | |
| |||
0 commit comments