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