github.com/AngusLu/go-swagger@v0.28.0/notes/v0.9.0.md (about) 1 # Change Log 2 3 ## [0.9.0](https://github.com/go-swagger/go-swagger/tree/0.9.0) (2017-04-09) 4 [Full Changelog](https://github.com/go-swagger/go-swagger/compare/0.8.0...0.9.0) 5 6 **Implemented enhancements:** 7 8 - Allow Bypassing FormatContent on Render [\#894](https://github.com/go-swagger/go-swagger/issues/894) 9 - tutorial needed on how to generate a service using kvstore as an example [\#889](https://github.com/go-swagger/go-swagger/issues/889) 10 - support bash/zsh autocompletion for swagger [\#886](https://github.com/go-swagger/go-swagger/issues/886) 11 - validate spec before generating, with opt-out option [\#825](https://github.com/go-swagger/go-swagger/issues/825) 12 - Improve Defaults of Server \(API\) Configuration [\#810](https://github.com/go-swagger/go-swagger/issues/810) 13 - Support new `operation` annotation [\#793](https://github.com/go-swagger/go-swagger/issues/793) 14 - Complete swagger:route generator based on full OpenAPI router spec [\#790](https://github.com/go-swagger/go-swagger/issues/790) 15 - Question: Is it possible to use existing type instead of generated model? [\#778](https://github.com/go-swagger/go-swagger/issues/778) 16 - Couldn't find swag.DateTime\(strfmt.DateTime\) \*strfmt.DateTime [\#734](https://github.com/go-swagger/go-swagger/issues/734) 17 - How to implement URLs to resources? [\#604](https://github.com/go-swagger/go-swagger/issues/604) 18 - Generate an url builder method for every resource path [\#119](https://github.com/go-swagger/go-swagger/issues/119) 19 - validate spec prior to gen. client/server [\#852](https://github.com/go-swagger/go-swagger/pull/852) ([GlenDC](https://github.com/GlenDC)) 20 - add HTTPClient parameter functions [\#849](https://github.com/go-swagger/go-swagger/pull/849) ([GlenDC](https://github.com/GlenDC)) 21 22 **Fixed bugs:** 23 24 - Path parameters not unescaped correctly [\#928](https://github.com/go-swagger/go-swagger/issues/928) 25 - routing issue when path param name contains a dash [\#907](https://github.com/go-swagger/go-swagger/issues/907) 26 - path params not always set to required:true [\#905](https://github.com/go-swagger/go-swagger/issues/905) 27 - Path not found error for endpoint with trailing slash [\#899](https://github.com/go-swagger/go-swagger/issues/899) 28 - Flattened spec does not validate. [\#898](https://github.com/go-swagger/go-swagger/issues/898) 29 - Generating array in response-header fails [\#881](https://github.com/go-swagger/go-swagger/issues/881) 30 - Spec generation examples and documentation does not match [\#879](https://github.com/go-swagger/go-swagger/issues/879) 31 - don't allow empty items in spec in resolveSimpleType [\#875](https://github.com/go-swagger/go-swagger/issues/875) 32 - root path `/` operations cannot be found in generated serverapi [\#870](https://github.com/go-swagger/go-swagger/issues/870) 33 - Debugging generated client at runtime [\#862](https://github.com/go-swagger/go-swagger/issues/862) 34 - Mistype [\#853](https://github.com/go-swagger/go-swagger/issues/853) 35 - Type using allOf in generate server has broken MarshalJSON and UnmarshalJSON in 0.8.0 [\#847](https://github.com/go-swagger/go-swagger/issues/847) 36 - responses dont have a stable order [\#846](https://github.com/go-swagger/go-swagger/issues/846) 37 - Wrong field selectors are generated when using allOf in response schema definition [\#844](https://github.com/go-swagger/go-swagger/issues/844) 38 - Model compilation problems when `additionalProperties: true` [\#822](https://github.com/go-swagger/go-swagger/issues/822) 39 - unresolvable blank format, generates in swagger-codegen, created repo with results [\#811](https://github.com/go-swagger/go-swagger/issues/811) 40 - Parameter names with brackets fail to generate valid Go variables [\#809](https://github.com/go-swagger/go-swagger/issues/809) 41 - Client gen not respecting `--tags` parameters [\#795](https://github.com/go-swagger/go-swagger/issues/795) 42 - Incorrect Validation generated for object field [\#786](https://github.com/go-swagger/go-swagger/issues/786) 43 - Can't reference definition from file in same directory [\#776](https://github.com/go-swagger/go-swagger/issues/776) 44 - baseImport doesn't handle case-insensitive paths on windows properly [\#775](https://github.com/go-swagger/go-swagger/issues/775) 45 - Model property default values not effective on server side processing [\#769](https://github.com/go-swagger/go-swagger/issues/769) 46 - Validation code for lists of int32s with minimum/maximum inside object fails to compile [\#763](https://github.com/go-swagger/go-swagger/issues/763) 47 - Server returns 405 Method not allowed instead of 404 for PUT, POST requests with invalid basepath [\#761](https://github.com/go-swagger/go-swagger/issues/761) 48 - Responses should support a description [\#738](https://github.com/go-swagger/go-swagger/issues/738) 49 - swagger generate client fails on validated swagger.json [\#733](https://github.com/go-swagger/go-swagger/issues/733) 50 - Validation error with spec that contains refs to local files [\#729](https://github.com/go-swagger/go-swagger/issues/729) 51 - Duplicate imports in main.go on pet-store's swagger file. [\#665](https://github.com/go-swagger/go-swagger/issues/665) 52 - \[BREAKING\] Path tags change code generation in a strange way [\#500](https://github.com/go-swagger/go-swagger/issues/500) 53 54 **Closed issues:** 55 56 - Remove warning messages [\#993](https://github.com/go-swagger/go-swagger/issues/993) 57 - Nested Packages: Generating Spec File [\#991](https://github.com/go-swagger/go-swagger/issues/991) 58 - Question: package names [\#971](https://github.com/go-swagger/go-swagger/issues/971) 59 - How to write comment when API accepts json body? [\#970](https://github.com/go-swagger/go-swagger/issues/970) 60 - generate spec from source doesn't support custom name of params on header, query [\#963](https://github.com/go-swagger/go-swagger/issues/963) 61 - Read request body in middleware. [\#955](https://github.com/go-swagger/go-swagger/issues/955) 62 - validating content type for "application/json" against \[\] [\#952](https://github.com/go-swagger/go-swagger/issues/952) 63 - Scanning of SecureDefinitions returns wrong json [\#949](https://github.com/go-swagger/go-swagger/issues/949) 64 - Generated import path ignores capitalization [\#941](https://github.com/go-swagger/go-swagger/issues/941) 65 - Error "target must reside inside a location in the $GOPATH/src", target is in $GOPATH/src \(Windows\) [\#940](https://github.com/go-swagger/go-swagger/issues/940) 66 - Not able to generate proper swagger spec [\#938](https://github.com/go-swagger/go-swagger/issues/938) 67 - swagger:meta custom description [\#937](https://github.com/go-swagger/go-swagger/issues/937) 68 - Set HTTP header on the client side without an explicit swagger parameters [\#935](https://github.com/go-swagger/go-swagger/issues/935) 69 - Beam file not being generated. [\#930](https://github.com/go-swagger/go-swagger/issues/930) 70 - Need help in successfully running swagger generate commands [\#929](https://github.com/go-swagger/go-swagger/issues/929) 71 - How do you remove a not required date-time from your JSON output? [\#927](https://github.com/go-swagger/go-swagger/issues/927) 72 - Go-swagger app on Google App Engine Standard? [\#925](https://github.com/go-swagger/go-swagger/issues/925) 73 - Similar routing paths that differ at the leaf got dropped out [\#918](https://github.com/go-swagger/go-swagger/issues/918) 74 - Embedded pointers cause errors in spec generation [\#896](https://github.com/go-swagger/go-swagger/issues/896) 75 - Cannot parse time formats that look like this: 2017-01-17T22:58:45 [\#873](https://github.com/go-swagger/go-swagger/issues/873) 76 - Allow customized client constructor while respecting defaults [\#838](https://github.com/go-swagger/go-swagger/issues/838) 77 - Implement ValidateNamed method to support validation errors with proper names [\#837](https://github.com/go-swagger/go-swagger/issues/837) 78 - Support default value for model property [\#828](https://github.com/go-swagger/go-swagger/issues/828) 79 - Newlines in title field breaks docstrings [\#813](https://github.com/go-swagger/go-swagger/issues/813) 80 - Code gen: missing import restapi/operations/\[name\]/get\_\[name\]\_parameters.go ; "github.com/go-openapi/runtime/middleware" [\#590](https://github.com/go-swagger/go-swagger/issues/590) 81 82 **Merged pull requests:** 83 84 - no x-go-name on $ref props [\#994](https://github.com/go-swagger/go-swagger/pull/994) ([casualjim](https://github.com/casualjim)) 85 - Update response.md [\#988](https://github.com/go-swagger/go-swagger/pull/988) ([matiasanaya-ffx](https://github.com/matiasanaya-ffx)) 86 - Allow to set build tags for scanner [\#980](https://github.com/go-swagger/go-swagger/pull/980) ([gaplyk](https://github.com/gaplyk)) 87 - Fix links in docs/README.md [\#978](https://github.com/go-swagger/go-swagger/pull/978) ([houjunchen](https://github.com/houjunchen)) 88 - Task: Update generate docs [\#975](https://github.com/go-swagger/go-swagger/pull/975) ([kenjones-cisco](https://github.com/kenjones-cisco)) 89 - Bugfix: err shadows declaration [\#974](https://github.com/go-swagger/go-swagger/pull/974) ([kenjones-cisco](https://github.com/kenjones-cisco)) 90 - Bugfix: Check error of SetTimeout [\#969](https://github.com/go-swagger/go-swagger/pull/969) ([kenjones-cisco](https://github.com/kenjones-cisco)) 91 - Always add default imports [\#966](https://github.com/go-swagger/go-swagger/pull/966) ([kars7e](https://github.com/kars7e)) 92 - Respect required for polymorphic types [\#964](https://github.com/go-swagger/go-swagger/pull/964) ([jbowes](https://github.com/jbowes)) 93 - update vendored libs [\#956](https://github.com/go-swagger/go-swagger/pull/956) ([casualjim](https://github.com/casualjim)) 94 - generator: Generate good godoc style for HTTP error codes [\#953](https://github.com/go-swagger/go-swagger/pull/953) ([tgraf](https://github.com/tgraf)) 95 - Add in swagger:meta, security fix. Implementation of secure definitions [\#950](https://github.com/go-swagger/go-swagger/pull/950) ([gaplyk](https://github.com/gaplyk)) 96 - Fix package lookup. Add ast.SelectorExpr [\#945](https://github.com/go-swagger/go-swagger/pull/945) ([gaplyk](https://github.com/gaplyk)) 97 - Updates schema scanner to print warning [\#942](https://github.com/go-swagger/go-swagger/pull/942) ([robertacosta](https://github.com/robertacosta)) 98 - Added custom tag functionality [\#939](https://github.com/go-swagger/go-swagger/pull/939) ([johnnadratowski](https://github.com/johnnadratowski)) 99 - Use json.RawMessage to decode polymorphic types [\#933](https://github.com/go-swagger/go-swagger/pull/933) ([kars7e](https://github.com/kars7e)) 100 - Set the read and write timeout values for the http scheme [\#926](https://github.com/go-swagger/go-swagger/pull/926) ([jbowes](https://github.com/jbowes)) 101 - Remove no-op basePath assignment. [\#921](https://github.com/go-swagger/go-swagger/pull/921) ([snargleplax](https://github.com/snargleplax)) 102 - Support x-go-name in response elements [\#916](https://github.com/go-swagger/go-swagger/pull/916) ([tgraf](https://github.com/tgraf)) 103 - Fix some typos and spelling errors I discovered while reading the docs [\#915](https://github.com/go-swagger/go-swagger/pull/915) ([flimzy](https://github.com/flimzy)) 104 - generator: Provide const for all defined response codes [\#914](https://github.com/go-swagger/go-swagger/pull/914) ([tgraf](https://github.com/tgraf)) 105 - fix\(generator\): always use runtime/flagext in server generation [\#913](https://github.com/go-swagger/go-swagger/pull/913) ([mitch000001](https://github.com/mitch000001)) 106 - fixes path param scan and trailing slash router [\#906](https://github.com/go-swagger/go-swagger/pull/906) ([casualjim](https://github.com/casualjim)) 107 - add custom server example and update examples [\#904](https://github.com/go-swagger/go-swagger/pull/904) ([GlenDC](https://github.com/GlenDC)) 108 - remove unused resolveSimpleType func [\#903](https://github.com/go-swagger/go-swagger/pull/903) ([GlenDC](https://github.com/GlenDC)) 109 - 886 bash zsh autocompletion [\#902](https://github.com/go-swagger/go-swagger/pull/902) ([GlenDC](https://github.com/GlenDC)) 110 - add custom server tutorial [\#900](https://github.com/go-swagger/go-swagger/pull/900) ([GlenDC](https://github.com/GlenDC)) 111 - Fixes \#896 - Added \*ast.StarExpr to parsers [\#897](https://github.com/go-swagger/go-swagger/pull/897) ([bjyoungblood](https://github.com/bjyoungblood)) 112 - Allow CodeGen to skip formatting [\#895](https://github.com/go-swagger/go-swagger/pull/895) ([steve-gray](https://github.com/steve-gray)) 113 - fix sliceserverheaderbuilder's broken ValueExpression selector [\#885](https://github.com/go-swagger/go-swagger/pull/885) ([GlenDC](https://github.com/GlenDC)) 114 - Remove unnecessary ToUpper from builder template [\#882](https://github.com/go-swagger/go-swagger/pull/882) ([posener](https://github.com/posener)) 115 - make sure docs and its inline example match [\#880](https://github.com/go-swagger/go-swagger/pull/880) ([GlenDC](https://github.com/GlenDC)) 116 - Fix some grammar [\#878](https://github.com/go-swagger/go-swagger/pull/878) ([PaulCapestany](https://github.com/PaulCapestany)) 117 - generate root path as empty string in server router [\#871](https://github.com/go-swagger/go-swagger/pull/871) ([GlenDC](https://github.com/GlenDC)) 118 - Add default imports in templates [\#867](https://github.com/go-swagger/go-swagger/pull/867) ([JrCs](https://github.com/JrCs)) 119 - fix for broken link in todo-list tutorial [\#857](https://github.com/go-swagger/go-swagger/pull/857) ([nathany](https://github.com/nathany)) 120 - Generate code that keeps swagger spec as a string instead of a \[\]byte [\#856](https://github.com/go-swagger/go-swagger/pull/856) ([vburenin](https://github.com/vburenin)) 121 - fix typo in server/builder.gotmpl [\#855](https://github.com/go-swagger/go-swagger/pull/855) ([GlenDC](https://github.com/GlenDC)) 122 - fix \#847 [\#851](https://github.com/go-swagger/go-swagger/pull/851) ([Simon-Li](https://github.com/Simon-Li)) 123 - ensure constant client response body order [\#848](https://github.com/go-swagger/go-swagger/pull/848) ([GlenDC](https://github.com/GlenDC)) 124 - generator: strip package name from type name [\#845](https://github.com/go-swagger/go-swagger/pull/845) ([rjeczalik](https://github.com/rjeczalik)) 125 - expose transport config, fixes \#838 [\#843](https://github.com/go-swagger/go-swagger/pull/843) ([GlenDC](https://github.com/GlenDC)) 126 - 837-support-validation-error-with-proper-name [\#840](https://github.com/go-swagger/go-swagger/pull/840) ([Simon-Li](https://github.com/Simon-Li)) 127 - Fix a number of bugs [\#832](https://github.com/go-swagger/go-swagger/pull/832) ([casualjim](https://github.com/casualjim)) 128 - 828-Support-default-value-for-model-property [\#829](https://github.com/go-swagger/go-swagger/pull/829) ([Simon-Li](https://github.com/Simon-Li)) 129 - Fix issue [\#826](https://github.com/go-swagger/go-swagger/pull/826) ([gaplyk](https://github.com/gaplyk)) 130 - allow for gopath to be differently cased from actual [\#821](https://github.com/go-swagger/go-swagger/pull/821) ([casualjim](https://github.com/casualjim)) 131 - local file refs for params and responses in server gen [\#820](https://github.com/go-swagger/go-swagger/pull/820) ([casualjim](https://github.com/casualjim)) 132 - validate respects local file reference [\#819](https://github.com/go-swagger/go-swagger/pull/819) ([casualjim](https://github.com/casualjim)) 133 - improve defaults API constructor, fixes \#810 [\#816](https://github.com/go-swagger/go-swagger/pull/816) ([GlenDC](https://github.com/GlenDC)) 134 - add operation annotation [\#815](https://github.com/go-swagger/go-swagger/pull/815) ([GlenDC](https://github.com/GlenDC)) 135 - Apply comment function to title in docstring template [\#814](https://github.com/go-swagger/go-swagger/pull/814) ([lstoll](https://github.com/lstoll)) 136 - Use existing Go type instead of generated one \(fix \#778\) [\#812](https://github.com/go-swagger/go-swagger/pull/812) ([nikolay-turpitko](https://github.com/nikolay-turpitko)) 137 138 \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*