Implemented enhancements:
- x-nullable: false doesn't affect required values #458
- Refactor package structures #420
- No consumers and producers for "text/plain" in the client runtime #360
- No consumers and producers for "application/xml" in the client runtime #359
- Add http/unix socket transport #278
- Clean up tutorial #275
- server generated code does not compile #215
- Support not embedding swagger schema into generated Go code #190
- Add a command to initialize a swagger yaml spec #187
- Allow for client templates to be overridden with local versions #101
- validation: referencable references #16
- support huge file uploads #8
- documentation site #5
Fixed bugs:
- No validator code call for array items if they are other models. #524
- escaped slashes in path ids are incorrectly decoded #522
- Multipart form generates unnecessary variable that lead to compile error #511
- Negotiated content type producer uses DefaultProduces even when matched route does not have a "produces" for that type. #499
- Recursive definition causes stack overflow #483
- Fail and log on errors adding user-defined CLI flags #470
- Specification basePath is not respected #465
- Incorrect case in generated model code referencing model name #460
- Presence of required nested object is not validated #455
- Incorrectly generated Marshaller causes unlimited recursive Marshal calls #454
- Optional nested objects are not validated #453
- Swagger generate oauth2 scope #449
- Panic on form validation for mutlipart upload #438
- x-www-form-urlencoded cannot be consumed in go-swagger 0.5.x #433
- Incorrect unmarshal code generated for polymorphic object parent #423
- Basic auth doesn't compile #406
- Recursive model definition causes infinite loop #399
- Validation of required values should allow empty values #398
- No data fields in the response object #384
- Validation code tries to compare a non-nullable with a nil value. #381
- CLI help is printed twice. #375
- Question - Expose the server port if a random port is used for the server #372
- DELETE operation with no body and Accept: */* does not reach handler #371
- Expanding nested items is broken. #367
- Tagging an in "body" parameter with "required" has no effect #366
- Incorrect type used for validator #363
- Generated comments on model types and client operations don't begin with the type / operation name in some cases #356
- Wrong enum type names in the client generator #352
- panic: on array/collectionFormat + validation #351
- Default value is not generated for boolean type. #350
- Generated model results in broken build #340
- API client has wrong package name #330
- duplicate declarations on a naming colision #325
- Validator treats parameter references as errors #321
- Issue with parameters of type file in the client generator #320
- Map of base type generates a map of *Interface instead of map of Interface #319
- Models: do not generate pointers and omitempty if property is required #300
- Handle missing Accept: from request header #298
- Enums are no longer pointers if not required #277
- Cannot use "." in route definition #271
- Enum generated Validate code has duplicate if checks #265
- fields with special chars lose the special chars #257
- missing import: model not compiling #255
- Panic: interface is spec.Schema, not spec.Parameter for formField file #253
- Kubernetes 2.0 Spec #239
- Generated models with shared enums do not compile #227
- Go swagger does not support plain values in bodies. #217
- Generated server should allow for cleanup on shutting down #198
- Crash when using swagger generate client #197
- Generated BindRequest has call to Validate, even if no validation is specified #196
- parameter integers are always send #195
- Wrong documentation for swagger:parameters annotation #194
- format of parameters leads to bad generated code #193
- Validation dereferencing non-pointer #186
- Generated Validate method does not dereference pointer #182
- Generated Validatator on slice from interface method incorrect #181
- Don't set query params if they are nil #174
- The validation does not work for the reference. #159
Closed issues:
- Using user defined logger instead of fmt.Printf #528
- where is the spec validator tested #525
- Integer enum validation always fail #523
- Skip parameter fields with json tag
json:"-"
#520 - Typo multipart/form-data as "Mulitpart" #518
- Generate models for internal use only #516
- Parameters template bug leads to errors in header validation #494
- types don't match: expect map key string or int get: bool #490
- go swagger generated code is not fully golint-able #487
- Validator treats array in example as invalid data #478
- Unnecessary "required" validation for array items #472
- Add hints for the type names generated by swagger #471
- go-swagger v0.5.0 - cannot find package "golang.org/x/tools/go/buildutil" #434
- Add a configuration layer for TLS. #430
- Panic expanding responses that are a schema ref with circular refs #415
- mTLS with custom roots known to work? #409
- No way to hook code after flags are parsed but before request handling starts #403
- Tagging a parameter with "pattern" doesn't seem to always have affect #369
- Boolean parameters are generated into strings #346
- Missing package swag in generated models #345
- Wrong httpkit/validate package in generated model files #343
- String param with binary format in body does not validate #341
- Add support for tar, gzip #326
- The generated import path has incorrect prefix #323
- Some --skip-* flags not working #322
- Support for cookies in the client runtime #308
- Generated server is misinterpreting request type as application/octet-stream #306
- Operation specific "produces" not overriding global "produces" #304
- Move things out of the main package #302
- httpkit/client/runtime strips trailing slash from request path causing 301 #289
- Generate: No Producer or stub for "text/plain" #287
- spec generator strips out special characters in the beginning of lines #276
- Add Support for Extensions on the root Swagger Document #268
- DELETE method without body #264
- server consuming
application/x-www-form-urlencoded
doesn't work #263 - Nested references in definitions cause failure #254
- Server/client with enums generate uncompilable golang #252
- clientgen: Properties with "format": "date-time" that are not required are not generated as pointers #251
- array body parameters lead to uncompilable client code #249
- Optional query param enums are not validated #248
- build cross platform binaries #247
- provide a version command #246
- Map as property created as pointer on objects #243
- race in Runtime.Submit #242
- Make generated client use
consumes
in schema for Accept headers, rather than transport consumers #235 - swagger validate silently returns 0 when input does not exist #233
swagger generate client
with-t
directory target puts client code in unexpected directory #230- Schemes passed into httpkit New ignored #228
- Example for generating spec with securityDefinitions? #225
- wrong identifier used in generated code when validating parameter with not valid (in golang) identifier #223
- support not embedding the schema into the server generated code #222
- Delete requests with bodies cause a runtime error #219
- not an issue #216
- Empty string not validated in body schema #212
- Generated server main is currently always overwritten #210
- Allow addition of custom command line options to generated server code #207
- Sole TextMarshaler and TextUnmarshaler interfaces are left aside for embedded types #205
- Invalid code client generated in Default Parameter constructor #201
- Getting io.EOF error returned from successful HTTP response #192
- Client: Generated validator does not reference field #189
- Random model properties #180
- autodetect swagger base path #120
- Submit server golang code generator in swagger-codegen. #110
- Submit client generator integration to swagger-codegen #109
- Unmarshal error returned without further context #77
Merged pull requests:
- Added possibility for users to defined their custom logger. #529 (vburenin)
- update vendored packages #527 (casualjim)
- Fixed bug for not generated validator call if there is an array of complex objects. #526 (vburenin)
- skip fields in parameter structs with struct tag
json:"-"
#521 (jlburkhead) - Fix typo mulit vs multi #519 (fiorix)
- add support for oauth2 to generator #517 (casualjim)
- fail on invalid command line definition #514 (casualjim)
- remove unused param var #513 (casualjim)
- update context, imports, swag, runtime, loads and govalidator #512 (casualjim)
- Add support for strfmt.MAC #509 (tzneal)
- Put params fix #508 (ivan1993spb)
- Added missing wait for the client generator. #507 (casualjim)
- Leveraging Go goroutings to speed up generation process in multicore environment. #504 (vburenin)
- Removed redundant code. Less JSON parsing. Speedups on many things in… #503 (vburenin)
- Combined fix of 453 and 455 bugs. #502 (vburenin)
- Prevents parsing structs that are needed when parsing dicovered schemas #498 (seanbrant)
- Add missed go code generation for #494 #497 (galaxie)
- Use canonicalized keys to retrieve values from http.Request.Header #495 (galaxie)
- Pascalize method arguments in client operations - fixes #487 #488 (MStoykov)
- 420 package refactor #486 (casualjim)
- move analysis out of spec package #485 (casualjim)
- generator: Use a JSON decoder with UseNumber enabled for unmarshaling #482 (chancez)
- updates unmarshal for discriminated types as property #480 (casualjim)
- second part of bugfix #479 (casualjim)
- validate items more often #475 (casualjim)
- Use cache as it is designed to be used, not as it is actually used. #474 (vburenin)
- Required flag is reset for array items. #473 (vburenin)
- fix appveyor builds #468 (casualjim)
- generator: fix package assumption on server generation #467 (jwmaag)
- Use spec BasePath when it is non-empty. #466 (nikhilm)
- fix some issues with additional properties generation #461 (casualjim)
- X nullable first #459 (vburenin)
- Fix go-swagger#449 #451 (galeone)
- Add validation required fix and corresponding package tests #450 (galaxie)
- Fixed bug in httpkit/client/runtime.go Submit() #448 (ritchida)
- also exclude models/handlers in the client #447 (casualjim)
- add discard consumer/producer for http mimes #443 (casualjim)
- add note to readme about homebrew package #441 (casualjim)
- Fix typo (defintion -> definition) #440 (flavioribeiro)
- Improve error message #437 (abclogin)
- Bring back build util #435 (casualjim)
- Added user hook to config TLS layer. #432 (vburenin)
- [wip] once and for all work out the rules for pointing to things #431 (casualjim)
- disables code coverage for automated builds for a while #429 (casualjim)
- Fixes some issues with empty bodies #428 (casualjim)
- Improve error message #427 (abclogin)
- fix default produces #424 (casualjim)
- increase circle ci default timeout #419 (pytlesk4)
- adds dumpdata flags to client and server #418 (casualjim)
- resolves refs for parameters and responses, fixes #384 #417 (casualjim)
- fix Panic expanding responses that are a schema ref with circular #416 (pytlesk4)
- Don't panic when handling circular refs. #414 (pytlesk4)
- Fix build on all build servers #412 (casualjim)
- Remove dependency heavy goconvey #411 (casualjim)
- refines omitempty and fixes basicauth #410 (casualjim)
- Add *raw-stream mimetype mapping #408 (sflxn)
- Add setter to generated response writer #405 (anfernee)
- Allow empty content-type when allowed list is empty #404 (anfernee)
- generate all models if name not specified #401 (easeway)
- Proper handle of array of pointers to struct #396 (gaplyk)
- 368 merge expand items #394 (casualjim)
- split restapi.NewServer #392 (caglar10ur)
- Fix issue with unknown primitive. #391 (gaplyk)
- better validation for invalid refs #387 (casualjim)
- deal with empty required bodies #385 (casualjim)
- primitive aliases are not nullable #383 (casualjim)
- fixes some golint warnings in generated client #380 (casualjim)
- mangle type name for string alias #379 (casualjim)
- fix argument passing for validation function #378 (casualjim)
- better default handling in parameters #377 (casualjim)
- Fixes compilation error for stream type #376 (casualjim)
- specializes min/max validations for int #374 (casualjim)
- Separates listen from serve in server #373 (casualjim)
- Add plain text consumer and producer #364 (stoyanr)
- Add XML consumer and producer #362 (stoyanr)
- scan: treat error primitive as string #349 (fsouza)
- Fix overriding consumes in spec for client #348 (casualjim)
- fix missing httpkit import in models #344 (easeway)
- fixes #330 package for client is client package #339 (casualjim)
- update vendored deps #338 (casualjim)
- adds --with-context for a request scoped net/context #337 (casualjim)
- add support for binary string format #336 (casualjim)
- make enum names for property different from aliased types #335 (casualjim)
- add --scan-models flag for generate spec command #333 (casualjim)
- no pointer for base type in maps #332 (casualjim)
- reinstate --skip-* arguments #329 (casualjim)
- Add tar, gzip support #327 (jzt)
- full path for go imports run #324 (casualjim)
- ensure file names don't end with _test #318 (casualjim)
- fix #306 also recognize application/octet-stream in generator #317 (casualjim)
- update changelog #316 (casualjim)
- adds a ResponderFunc helper #315 (casualjim)
- fixes #222 server optionally embeds spec #314 (casualjim)
- 302 reprise #313 (casualjim)
- anchor strfmt import (fixes #255) #312 (casualjim)
- 304 consumes produces override #311 (casualjim)
- 306 octet stream consumer producer #310 (casualjim)
- Add support for cookies in the client runtime #309 (stoyanr)
- fix file type parameter when the parameter is required #297 (adasescu)
- 275 clean up tutorial #296 (andregmoeller)
- prepare for 0.3.0 release #295 (casualjim)
- adds unix domain sockets to generated server #294 (casualjim)
- generate stabler operation names #293 (casualjim)
- Preserve trailing slash in URL path in runtime #292 (jonathaningram)
- more lenient path matching for routes #291 (casualjim)
- fixes both issues related to enums #290 (casualjim)
- add text/plain in server generator #288 (casualjim)
- transliterate some common special chars #286 (casualjim)
- adds swagger:file annotation, fixes #253 #285 (casualjim)
- use sync.Once for client #284 (casualjim)
- nullable dates #283 (casualjim)
- returns a more useful error message #282 (casualjim)
- readme update for distribution channels #281 (casualjim)
- scan: strip only special chars that are used in annotations #280 (fsouza)
- go generate the generator/bindata.go to fix #263 #273 (MStoykov)
- Bugfix for POST Ops not setting Content Length #272 (akutz)
- Add Support for Extensions on the swagger root object. #269 (pytlesk4)
- Fixes #263. #267 (pieter-lazzaro)
- make content type optional for delete method #266 (casualjim)
- disable bintray publishing for now #262 (casualjim)
- update release to use tag from args #261 (casualjim)
- update drone.sec #260 (casualjim)
- first stab at automated releases through tags #259 (casualjim)
- fixes #252 primitives are not nullable #258 (casualjim)
- generator: Print unknown models out when gathering models #256 (chancez)
- don't share Params between requests of a Handler #240 (MStoykov)
- httpkit/client: Only set the content-type if the body isnt empty #238 (chancez)
- Better custom template solution #237 (pieter-lazzaro)
- Use schemas consumes to determine accept headers #236 (chancez)
- Fix for shared enums #234 (casualjim)
- fixes generation of bitbucket client #231 (casualjim)
- fixes #217 skip validate for impossible types #229 (casualjim)
- pascalize struct fields before concating them to struct identifiers F… #224 (MStoykov)
- #101 Custom templates #221 (pieter-lazzaro)
- allow delete requests to have bodies #220 (azylman)
- Fix godoc for client code #214 (Xe)
- skip generating server main if it exists: #211 (dfuentes)
- Fix import path for operations that lack tags #209 (dfuentes)
- Added possibility for custom command line option parsing #208 (Tobi042)
- Change strfmt.DateTime and strfmt.Date types to alias #206 (aleksandr-vin)
- generate bindata #204 (chancez)
- generator: Use new buffer to avoid reading empty buffer #203 (chancez)
- generator: Take address of default params for non-required, parameters with defaults #202 (chancez)
- FIXES #193 #200 (MStoykov)
- Proposed solution to Issue #198 #199 (Tobi042)
v0.2.0 (2015-12-25)
Implemented enhancements:
- Add appveyor build #153
- Document supported vendor extensions #131
- Add documentation for generated server #130
Fixed bugs:
- Polymorphic/generic subtypes: discriminator getter method, and unmarshal function do not use definition name #175
- Spec generator fails for swagger:route that has no tags #171
- client: Polymorphic types as parameter generates pointer to interface #169
- client should respect default values #135
- models: missing optional fields must not be rejected by validators and must have a distinguishable zero value #132
Closed issues:
- Add server support for default header values in responses #172
- doesn't generate the instagram api server #170
Merged pull requests:
- Refactor strfmt/time tests, add strfmt.NewDateTime function #177 (aleksandr-vin)
- Add default value support for response headers, fixes #172 #173 (aleksandr-vin)
- fix test failing on windows. #168 (faguirre1)
v0.1.0 (2015-12-14)
Implemented enhancements:
- check licenses of dependencies #154
- Empty or duplicate operation ids in codegen #134
- no empty names for path parameters #128
- Add validation for only body or formdata params #127
- Add support for security definitions to server codegen #113
- [scanner] security schemes #112
- [scanner] spec generation should fail when a struct is decorated with more than 1 annotation #92
- Struct references in operation parameter objects are generated as struct fields instead of pointers. #60
- validation: default values must validate against schema #18
- validation: referenced objects #17
- implement validation: circular ancestry #13
- implement validation: duplicate property name declaration #12
- Generate a swagger spec from go code #3
Fixed bugs:
- no code generated to handle unmarshalling a slice of a generic type #160
- swagger generate server with
-t
leads to non-compiliable generated code #155 - apiKey SecurityDefinitions work only if the header name=security definition name #152
- add allowEmptyValue support for a parameter #149
- Polymorphic validation code does not invoke generated Getter methods #146
- generate commands should work with urls too #145
- responses with a body of type interface{} don't render well #137
- responses with a schema render lots of extra schemas #136
- Validation fails with circular dependency #123
- server should have options for SSL when https scheme is present #115
- no enum detected for enum properties in combination with allOf #107
- Problem with query parameter with type array and collectionFormat: multi #106
- [scanner] Exported fields typed interface result in an invalid schema #93
- make go gettable without authentication #89
- client should infer schemes from the spec #88
- respect vendor specific media types #87
- client generation doesn't use tags #86
- client generation doesn't pick up on params from path level #85
- Enum model validation broken #79
- Client examples? #76
- When scanning a response the definition is not ref'ed #75
- enum validation for anonymous nested object is missing #74
- additional properties: false still gets treated as if it was set to true #73
- models composed with discriminators and allOf end up with empty bodies #65
- [validation] pathItems properties are not strictly validated #62
- Go-swagger validation issues #61
- Array references are generated as array of structs rather than array of pointers. #59
- Generated configure_{app}.go has missing import and invalid reference #56
- bind{Param} function may need casting for UUID #55
- Generated imports for models are incorrect #54
- Validation:"swagger" field must validate against schema #53
- scanner.go panics with index out of bounds #50
- generate spec doesn't add "swagger":2.0 at the beginning of the spec, but it's needed by swagger-ui #46
- may be bug on URI parse #37
- make generate spec support validations for nested collections #22
- make generated server support responses #21
Closed issues:
- server with valid schema and an extra slash (/) does not remove the extra #167
- divan/num2words causing
go get
failure #166 - Sample swagger.yml generating server fails for boolean, integer, number types in query params #163
- Does not support json keys that are numerical #162
- Support setting fields on interface/discriminated types #158
- Add HTTP/2 support #156
- Server does not compile if parameter description is missing #148
- Client GenCode tries to access field as method and
func\(\) httpkit.JSONConsumer
not being called. #147 - [scanner] support discriminators #142
- panic: assignment to entry in nil map #141
- main.go:XX: handler declared and not used #133
- codegen should account for reserved words #122
- look into using shippable #118
- inline schemas in responses fail to generate #116
- Consumers do not handle headers with charset in them #114
- Can't get models in the definitions #111
- untyped additional properties incorrectly flagged as having validations #108
- Inconsistent model method generation #105
- Inconsistent import/use of package in frontend_client.go generation #104
- optional strfmt types are not always used by their pointers #103
- Order of the generated operations should be consistent between generations #94
- generated server should have annotations to generate a spec #90
- Missed 'models' import in generated server when operations declared with 'default' response first #84
- various client generation fixes #82
- configure file for generated server is missing operations package #81
- Schemas without validations don't implement the Validate interface #80
- model: template: schemavalidations:78:62: executing "mapvalidator" at <.AdditionalPropertie...>: nil pointer evaluating *generator.GenSchema.HasValidations #72
- nil pointer evaluating *generator.GenSchema.HasValidations #71
- Possibility to add any headers #70
- Problems getting models in the definitions #67
- [validation] incorrect validation of path parameters defined in /parameters #63
- Validation failed for json swagger if the response schema defined type=array #58
- Nil pointer dereference exception while validate an swagger without path #52
- generate spec doesn't fill in the description field for responses, which is required. #51
- generate spec should remove request body params with the
json:"-"
tag #49 - Is there a way to set the "reason" or "response model" fields for a response? #48
- Support for JSON schema cross-file references. #45
- Generated fields with
format: "date-time"
have invalid validation code. #42 - Security names are mangled in generated
AuthenticatorsFor
method. #40 - Ability to generate
all
operations but not the model. #38 - Please export common embedded structs as public #36
strfmt
types should implement database marshaling methods. #35- packages order #28
- import package issue #27
- Generated Go code fails to transform multiline descriptions #23
- go install undefined #20
- Add support for the password format #7
- Move all the packages to their proper homes #4
- Support password extended string format #1
Merged pull requests:
- Support commonly used x-nullable in addition to x-isnullable #157 (chancez)
- Update README.md #138 (frapposelli)
- Fix #81 missing operations package #83 (aleksandr-vin)
- Allow http status 201 to have a response body #78 (florindragos)
- Ensure operation.Package has a value. #69 (jtopjian)
- Some space #66 (rgbkrk)
- validation: show path in path parameter validation errors #64 (dolmen)
- Fix generated code missing
strfmt
andhttpkit/middleware
imports. #43 (chakrit) - sql.Scanner and driver.Valuer implementation
strfmt
types. #39 (chakrit) - Fix package path handling on Windows #34 (magnushiie)
- Regenerate bindata for server templates. #33 (chakrit)
- Revert "fix support.go known Consumers/Producers and configureApi func" #32 (casualjim)
- fix support.go known Consumers/Producers and configureApi func #30 (midoblgsm)
- Fixing package and target order #29 (midoblgsm)
- Replace casualjim with go-swagger in deps and templates #26 (gbjk)
- Fix -target path injected at end of operations instead of beginning #25 (gbjk)
- Replace casualjim with go-swagger in imports #24 (gbjk)
- Add a Gitter chat badge to README.md #2 (gitter-badger)
* This Change Log was automatically generated by github_changelog_generator