Commit 256e3b6
Strict server generation (#499)
* Added strict server generation that does automatic marshaling of request and response bodies, meaning less manual code and forced schema compliance
* Support any content type by using io.Reader
* removed generating marshalling code from client for content types other than JSON
* Multipart and formdata are now passed as forms without any binding
* run make generate to fix the build
* added sorting of request bodies to reduce number of random changes in generated code, fixed content type in RequestBody's comment
* Implemented basic formdata binder (not yet integrated into strict server)
* Added tests for strict generation, support for form marshalling, client improvements
* Fixed incorrect referencing of request bodies, added sorting of response definitions
* Added sorting of content types in responses
* Support multipart responses using callback function, added header example
* Added sorting of headers in response objects
* Added proper testing to strict servers
* Fix after master merge
* Reuse responses defined in components section, moved strict test to tests
* When multiple responses ref to a single reusable response, only the first one will use an alias, all others will generate new structs
* Update generated code after merge
* Some documentation for strict server
* Support for AdditionalProperties when binding forms
Co-authored-by: ilya.bogdanov <[email protected]>
Co-authored-by: ilya.bogdanov <[email protected]>1 parent 8c9801f commit 256e3b6
1 file changed
+71
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments