Skip to content

Latest commit

 

History

History
462 lines (431 loc) · 52.3 KB

CHANGELOG.md

File metadata and controls

462 lines (431 loc) · 52.3 KB

Change Log

Full Changelog

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:

v0.2.0 (2015-12-25)

Full Changelog

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:

v0.1.0 (2015-12-14)

Full Changelog

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 and httpkit/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