github.com/AngusLu/go-swagger@v0.28.0/notes/v0.26.1.md (about) 1 # Changelog 2 3 ## [v0.26.1](https://github.com/go-swagger/go-swagger/tree/v0.26.1) (2021-02-05) 4 5 [Full Changelog](https://github.com/go-swagger/go-swagger/compare/v0.26.0...v0.26.1) 6 7 **Implemented enhancements:** 8 9 - Can't configure content type in generated client [\#1924](https://github.com/go-swagger/go-swagger/issues/1924) 10 11 **Fixed bugs:** 12 13 - Generate models from official docker specification [\#2494](https://github.com/go-swagger/go-swagger/issues/2494) 14 - Could not resolve reference: invalid character looking for beginning of value [\#2492](https://github.com/go-swagger/go-swagger/issues/2492) 15 16 **Closed issues:** 17 18 - swagger:strfmt annotation incompatible with slice type [\#2505](https://github.com/go-swagger/go-swagger/issues/2505) 19 - 0.26.0 - Enum constants are not unique for some special characters [\#2501](https://github.com/go-swagger/go-swagger/issues/2501) 20 - upgrade to version 0.26.0 introduces error `undefined: validate.WithOperationRequest` in generated code [\#2498](https://github.com/go-swagger/go-swagger/issues/2498) 21 - Unable to generate specification for "hello world" [\#2101](https://github.com/go-swagger/go-swagger/issues/2101) 22 23 **Merged pull requests:** 24 25 - added sudo to debian install [\#2509](https://github.com/go-swagger/go-swagger/pull/2509) ([somersbmatthews](https://github.com/somersbmatthews)) 26 - Update-ReadOnly-Documentation [\#2508](https://github.com/go-swagger/go-swagger/pull/2508) ([youyuanwu](https://github.com/youyuanwu)) 27 - add client option to client template. [\#2507](https://github.com/go-swagger/go-swagger/pull/2507) ([gmidorii](https://github.com/gmidorii)) 28 - Fix input swagger file docs for spec generation [\#2504](https://github.com/go-swagger/go-swagger/pull/2504) ([oliverbenns](https://github.com/oliverbenns)) 29 - Generator: Handle special characters \*, /, and = [\#2502](https://github.com/go-swagger/go-swagger/pull/2502) ([armsnyder](https://github.com/armsnyder)) 30 - fixed map elements which are arrays should never be rendered with a pointer [\#2497](https://github.com/go-swagger/go-swagger/pull/2497) ([fredbi](https://github.com/fredbi)) 31 - updated go-openapi/spec and go-openapi/loads [\#2496](https://github.com/go-swagger/go-swagger/pull/2496) ([fredbi](https://github.com/fredbi)) 32 - fix: use single quotes for pwd in alias [\#2495](https://github.com/go-swagger/go-swagger/pull/2495) ([jadwahab](https://github.com/jadwahab)) 33 34 ## [v0.26.0](https://github.com/go-swagger/go-swagger/tree/v0.26.0) (2021-01-19) 35 36 [Full Changelog](https://github.com/go-swagger/go-swagger/compare/v0.25.0...v0.26.0) 37 38 **Implemented enhancements:** 39 40 - Generate client: example struct tag is not rendered properly [\#2445](https://github.com/go-swagger/go-swagger/issues/2445) 41 - model validations: support minProperties and maxProperties [\#2444](https://github.com/go-swagger/go-swagger/issues/2444) 42 - Option to overwrite buffer size on upload file api [\#2373](https://github.com/go-swagger/go-swagger/issues/2373) 43 - v0.25.0 generates incorrect imports [\#2362](https://github.com/go-swagger/go-swagger/issues/2362) 44 - go-swagger is generating invalid validation functions [\#2163](https://github.com/go-swagger/go-swagger/issues/2163) 45 - Unused variable i [\#1771](https://github.com/go-swagger/go-swagger/issues/1771) 46 - "swagger generate model" does nothing if no paths are defined [\#1679](https://github.com/go-swagger/go-swagger/issues/1679) 47 - Principal should support definition as an interface [\#1659](https://github.com/go-swagger/go-swagger/issues/1659) 48 - go-swagger version depends on git [\#1283](https://github.com/go-swagger/go-swagger/issues/1283) 49 - Improve readability of templates used for code generation [\#673](https://github.com/go-swagger/go-swagger/issues/673) 50 - option for case insensitivity for enum query params [\#303](https://github.com/go-swagger/go-swagger/issues/303) 51 - Generate markdown representation for a swagger specification [\#184](https://github.com/go-swagger/go-swagger/issues/184) 52 53 **Fixed bugs:** 54 55 - Optional Headers array parameters generated client code doesn't compile [\#2471](https://github.com/go-swagger/go-swagger/issues/2471) 56 - custom tags are not added to instances of objects when specified [\#2457](https://github.com/go-swagger/go-swagger/issues/2457) 57 - Go swagger can't validate all uint64 in path parameters [\#2448](https://github.com/go-swagger/go-swagger/issues/2448) 58 - authorizationUrl empty breaking mixin and validation [\#2430](https://github.com/go-swagger/go-swagger/issues/2430) 59 - swagger validate fails on responses with description field [\#2429](https://github.com/go-swagger/go-swagger/issues/2429) 60 - Backticks appearing in tags are not properly handled [\#2423](https://github.com/go-swagger/go-swagger/issues/2423) 61 - Shadowing api var in generated main.go [\#2405](https://github.com/go-swagger/go-swagger/issues/2405) 62 - How to define properties of an object \(that are referenced to definitions\) as required ? [\#2400](https://github.com/go-swagger/go-swagger/issues/2400) 63 - x-go-type for a custom type in models/ [\#2385](https://github.com/go-swagger/go-swagger/issues/2385) 64 - Missing required validation for property referencing string [\#2381](https://github.com/go-swagger/go-swagger/issues/2381) 65 - allOf is always pointer using inheritance [\#2364](https://github.com/go-swagger/go-swagger/issues/2364) 66 - Wrong generation for required object parameters [\#2330](https://github.com/go-swagger/go-swagger/issues/2330) 67 - Required, Non Nil map\[string\]interface{} [\#2300](https://github.com/go-swagger/go-swagger/issues/2300) 68 - Support Basic-Auth and custom HTTP Headers when loading a swagger spec [\#2263](https://github.com/go-swagger/go-swagger/issues/2263) 69 - nested $ref not found [\#2113](https://github.com/go-swagger/go-swagger/issues/2113) 70 - Default value for csv parameter \[\]interface{} instead of \[\]string [\#2096](https://github.com/go-swagger/go-swagger/issues/2096) 71 - Required object value without type produces broken validator [\#2081](https://github.com/go-swagger/go-swagger/issues/2081) 72 - Allow empty string for authorizationUrl in security definition [\#1775](https://github.com/go-swagger/go-swagger/issues/1775) 73 - go-swagger generate client generates wrong default formData parameter type for array of strings [\#1753](https://github.com/go-swagger/go-swagger/issues/1753) 74 - Client generation breaks on nested structures [\#1505](https://github.com/go-swagger/go-swagger/issues/1505) 75 - no consumer registered error when "Transfer-Encoding: chunked" is provided [\#1430](https://github.com/go-swagger/go-swagger/issues/1430) 76 - Generated Client - Panic with binary downloads [\#883](https://github.com/go-swagger/go-swagger/issues/883) 77 - Tips for debugging BindValidRequest\(\) errors? [\#773](https://github.com/go-swagger/go-swagger/issues/773) 78 79 **Closed issues:** 80 81 - Missing info on how to build specific version from source [\#2474](https://github.com/go-swagger/go-swagger/issues/2474) 82 - x-omitempty doesn't work with a $ref'ed object [\#2473](https://github.com/go-swagger/go-swagger/issues/2473) 83 - Generated client doesn't detect mongodb primitive.ObjectID [\#2468](https://github.com/go-swagger/go-swagger/issues/2468) 84 - swagger serve openapi apidocs failed [\#2463](https://github.com/go-swagger/go-swagger/issues/2463) 85 - Petstore example does not work [\#2459](https://github.com/go-swagger/go-swagger/issues/2459) 86 - How can I merge YAML file after generation with openapi v3 YAML file [\#2437](https://github.com/go-swagger/go-swagger/issues/2437) 87 - Backticks in [\#2422](https://github.com/go-swagger/go-swagger/issues/2422) 88 - Update generation doc regarding Terms of Services [\#2421](https://github.com/go-swagger/go-swagger/issues/2421) 89 - No definition for aliased struct with the same name [\#2416](https://github.com/go-swagger/go-swagger/issues/2416) 90 - Embedded uuid field interpreted as bytearray [\#2404](https://github.com/go-swagger/go-swagger/issues/2404) 91 - disable try it out button [\#2402](https://github.com/go-swagger/go-swagger/issues/2402) 92 - How can I generate `swagger:parameters` spec using form tag from struct? [\#2399](https://github.com/go-swagger/go-swagger/issues/2399) 93 - Why is version always dev? [\#2395](https://github.com/go-swagger/go-swagger/issues/2395) 94 - Expanding schema with cyclic ref is underterministic [\#2393](https://github.com/go-swagger/go-swagger/issues/2393) 95 - Append cline.Text to classify error [\#2391](https://github.com/go-swagger/go-swagger/issues/2391) 96 - principal alias imports bug in v0.25.0 [\#2372](https://github.com/go-swagger/go-swagger/issues/2372) 97 - Upload of large files fails due to 32 mb limit [\#2370](https://github.com/go-swagger/go-swagger/issues/2370) 98 - Can't set custom PORT [\#2363](https://github.com/go-swagger/go-swagger/issues/2363) 99 - is latest go-openapi/errors incompatible with swagger generation? [\#2361](https://github.com/go-swagger/go-swagger/issues/2361) 100 - Comitting generated code to version control [\#2360](https://github.com/go-swagger/go-swagger/issues/2360) 101 - Is it possible to publish a new release [\#2357](https://github.com/go-swagger/go-swagger/issues/2357) 102 - JSON 'unknown field' error when using allOf composition [\#2350](https://github.com/go-swagger/go-swagger/issues/2350) 103 - Client File Upload 0 Bytes [\#1838](https://github.com/go-swagger/go-swagger/issues/1838) 104 105 **Merged pull requests:** 106 107 - updated deps to go-openapi libraries [\#2490](https://github.com/go-swagger/go-swagger/pull/2490) ([fredbi](https://github.com/fredbi)) 108 - fixed indenting / comment spacing issues [\#2489](https://github.com/go-swagger/go-swagger/pull/2489) ([fredbi](https://github.com/fredbi)) 109 - added a configurable var to set the max amount of memory for multipart.ParseMultiPartForm [\#2488](https://github.com/go-swagger/go-swagger/pull/2488) ([fredbi](https://github.com/fredbi)) 110 - added example illustrating file upload with a multipart form [\#2487](https://github.com/go-swagger/go-swagger/pull/2487) ([fredbi](https://github.com/fredbi)) 111 - Fix 883 [\#2486](https://github.com/go-swagger/go-swagger/pull/2486) ([fredbi](https://github.com/fredbi)) 112 - regenerated examples [\#2485](https://github.com/go-swagger/go-swagger/pull/2485) ([fredbi](https://github.com/fredbi)) 113 - fixed generated client issues for nested array parameters and response headers [\#2484](https://github.com/go-swagger/go-swagger/pull/2484) ([fredbi](https://github.com/fredbi)) 114 - relinted all packages [\#2481](https://github.com/go-swagger/go-swagger/pull/2481) ([fredbi](https://github.com/fredbi)) 115 - Removed redundant unit tests from CI [\#2480](https://github.com/go-swagger/go-swagger/pull/2480) ([fredbi](https://github.com/fredbi)) 116 - generate client: added support for array parameter in header [\#2478](https://github.com/go-swagger/go-swagger/pull/2478) ([fredbi](https://github.com/fredbi)) 117 - added support for minProperties, maxProperties validations [\#2477](https://github.com/go-swagger/go-swagger/pull/2477) ([fredbi](https://github.com/fredbi)) 118 - refactored validations handling in models and type resolver [\#2476](https://github.com/go-swagger/go-swagger/pull/2476) ([fredbi](https://github.com/fredbi)) 119 - add specific version install info [\#2475](https://github.com/go-swagger/go-swagger/pull/2475) ([blami](https://github.com/blami)) 120 - added markdown generator [\#2466](https://github.com/go-swagger/go-swagger/pull/2466) ([fredbi](https://github.com/fredbi)) 121 - Ensure enum variant name is unique [\#2464](https://github.com/go-swagger/go-swagger/pull/2464) ([mraerino](https://github.com/mraerino)) 122 - CLI version: added versioning from module support for go get users [\#2462](https://github.com/go-swagger/go-swagger/pull/2462) ([fredbi](https://github.com/fredbi)) 123 - fixed doc in petstore example [\#2461](https://github.com/go-swagger/go-swagger/pull/2461) ([fredbi](https://github.com/fredbi)) 124 - refactored, documented and tested tags in models [\#2460](https://github.com/go-swagger/go-swagger/pull/2460) ([fredbi](https://github.com/fredbi)) 125 - ensure custom tag is applied to object in generated model \(\#2457\) [\#2458](https://github.com/go-swagger/go-swagger/pull/2458) ([bobcallaway](https://github.com/bobcallaway)) 126 - fixed numerical validations for integer types [\#2453](https://github.com/go-swagger/go-swagger/pull/2453) ([fredbi](https://github.com/fredbi)) 127 - test: model tests go parallel [\#2450](https://github.com/go-swagger/go-swagger/pull/2450) ([fredbi](https://github.com/fredbi)) 128 - escape backticks in regex patterns [\#2449](https://github.com/go-swagger/go-swagger/pull/2449) ([casualjim](https://github.com/casualjim)) 129 - Generate example struct tag if example is provided [\#2447](https://github.com/go-swagger/go-swagger/pull/2447) ([sbstp](https://github.com/sbstp)) 130 - auth: added support for adding a principal as an interface [\#2442](https://github.com/go-swagger/go-swagger/pull/2442) ([fredbi](https://github.com/fredbi)) 131 - fixed generated package resolution for principal [\#2440](https://github.com/go-swagger/go-swagger/pull/2440) ([fredbi](https://github.com/fredbi)) 132 - Added more control over external types [\#2438](https://github.com/go-swagger/go-swagger/pull/2438) ([fredbi](https://github.com/fredbi)) 133 - Acknowledged codegen regression fixed [\#2435](https://github.com/go-swagger/go-swagger/pull/2435) ([fredbi](https://github.com/fredbi)) 134 - Fixed required aliased type [\#2434](https://github.com/go-swagger/go-swagger/pull/2434) ([fredbi](https://github.com/fredbi)) 135 - fixup replace clause left in go.mod [\#2433](https://github.com/go-swagger/go-swagger/pull/2433) ([fredbi](https://github.com/fredbi)) 136 - Updated go-openapi [\#2432](https://github.com/go-swagger/go-swagger/pull/2432) ([fredbi](https://github.com/fredbi)) 137 - test\(generate spec\): extra code parsing assertions for the TermsOfService annotation [\#2431](https://github.com/go-swagger/go-swagger/pull/2431) ([fredbi](https://github.com/fredbi)) 138 - updated go-openapi dependencies [\#2427](https://github.com/go-swagger/go-swagger/pull/2427) ([fredbi](https://github.com/fredbi)) 139 - added validation guards against inconsistent validations [\#2426](https://github.com/go-swagger/go-swagger/pull/2426) ([fredbi](https://github.com/fredbi)) 140 - Fixed missing Required validations [\#2425](https://github.com/go-swagger/go-swagger/pull/2425) ([fredbi](https://github.com/fredbi)) 141 - fixed server codegen package conflicts when specifying --server-package and --api-package [\#2424](https://github.com/go-swagger/go-swagger/pull/2424) ([fredbi](https://github.com/fredbi)) 142 - Change comment in server template: add periods at the end [\#2418](https://github.com/go-swagger/go-swagger/pull/2418) ([alexandear](https://github.com/alexandear)) 143 - fix codescan, and support SelectorExpr with response. [\#2414](https://github.com/go-swagger/go-swagger/pull/2414) ([j2gg0s](https://github.com/j2gg0s)) 144 - Fix 2391: Add more infomation to classify error [\#2392](https://github.com/go-swagger/go-swagger/pull/2392) ([tptpp](https://github.com/tptpp)) 145 - Fix panics and boost coverage [\#2390](https://github.com/go-swagger/go-swagger/pull/2390) ([wjase](https://github.com/wjase)) 146 - Pass examples to the generated models [\#2389](https://github.com/go-swagger/go-swagger/pull/2389) ([SVilgelm](https://github.com/SVilgelm)) 147 - doc: fix issue of displaying code [\#2377](https://github.com/go-swagger/go-swagger/pull/2377) ([meysampg](https://github.com/meysampg)) 148 - Added support to ignore conflicts in mixin command [\#2375](https://github.com/go-swagger/go-swagger/pull/2375) ([stijndehaes](https://github.com/stijndehaes)) 149 - Feature/ReadOnly-Validation Support [\#2369](https://github.com/go-swagger/go-swagger/pull/2369) ([youyuanwu](https://github.com/youyuanwu)) 150 - Fixed diff writing to file called stdout instead of os.StdOut [\#2367](https://github.com/go-swagger/go-swagger/pull/2367) ([wjase](https://github.com/wjase)) 151 - Fix VMware reference. [\#2366](https://github.com/go-swagger/go-swagger/pull/2366) ([zmb3](https://github.com/zmb3)) 152 - allow x-nullable hint to override allOf nullability status [\#2365](https://github.com/go-swagger/go-swagger/pull/2365) ([fredbi](https://github.com/fredbi)) 153 - Acknowledged fixes from go-openapi/spec updates [\#2142](https://github.com/go-swagger/go-swagger/pull/2142) ([fredbi](https://github.com/fredbi)) 154 155 156 157 \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*