Skip to content
53696ca
Compare
Choose a tag to compare

Changelog

v0.29.0 (2022-01-23)

Full Changelog

Implemented enhancements:

  • custom generator / export generation data #2055

Closed issues:

  • crash in swagger generate spec --scan-models #2690
  • Support nested body params in map objects. #2684
  • My uint's becomes int64 and so does my byte's #2677
  • go-swagger generate invalid code #2667
  • When go-swagger will have support openApi 3.0 ? #2666
  • How to read body in handler? (using params cause fields to be re-ordered) #2665
  • Add Release Arch for darwin_arm64 #2658
  • Is it possible to the order in which the APIs are shown in swagger #2646
  • how to combine swagger doc for multiple services running in different ports into a single SWAGGER UI #2645
  • Client generator generates code files with invalid/broken imports #2609
  • couldn't find a swagger spec #2580

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

48a66e4
Compare
Choose a tag to compare

Changelog

v0.28.0 (2021-10-09)

Full Changelog

Fixed bugs:

  • strfmt.bsonobjectid validation fails #2616
  • Creating models crash when using $ref on an array #2511

Closed issues:

  • The CLI should return a JSON output rather than objects #2640
  • Log-output is not working for validate command #2631
  • unsupported type "invalid type" when add a new empty go file #2630
  • how to response different field of response struct by different routes? #2629
  • Using swagger:strfmt on a []byte type (UUID) infers the type as an array of strings #2627
  • "github.com/go-openapi/errors".CompositeError has no field or method ValidateName #2623
  • undefined: validate.ReadOnly #2613
  • [BUG]gen model-package with relative path has incorrect imports from v0.25.0 #2608
  • Error: "source formatting on generated source "autoconfigure" failed" on server generate #2602
  • Error: "source formatting on generated source "autoconfigure" failed" if StrictResponders and ImplementationPackage were both set for a server generation #2601
  • How to change the case style (pascal, camel) of a struct tag #2600
  • 05 Method Not Allowed response instead of 400 with incorrect validation details #2598
  • Support nested body params for CompositeError #2594
  • [apiKey] auth by two apikey together(AND Operation) #2586
  • How to add authInfo to request with generated client #2584
  • Is there good to way to omit readonly key #2581
  • Generating Spec results in Invalid Type Error #2577
  • Integration with viper #2572
  • unsupported type "invalid type" #2569
  • Cannot install directly from github #2560
  • Generated server code with Go v1.15 and above generates deprecation warning for TLSConfig #2559

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

20312b9
Compare
Choose a tag to compare

Changelog

v0.27.0 (2021-03-31)

Full Changelog

Breaking changes:

  • Updating go-openapi breaks $ref on windows #2428

Implemented enhancements:

  • Pointer convertors for enum types are not generated. #2482
  • extension fields in info.contact do not propagate to embedded spec #2054

Fixed bugs:

  • Client Headers in response panic #2544
  • Swagger expand add invalid authorizationUrl key in securityDefinitions #2506

Closed issues:

  • Unable to install go-swagger package #2555
  • Question: How can I get the raw response body without decoding? #2552
  • There is a typo in docs/install.md #2550
  • can't generate header from source code #2532
  • Authentication tutorial missing required Swagger spec updates #2530
  • Use-case for --exclude-configuration or public function SetMiddleware() #2529
  • Documention translate #2526
  • Unknown command 'markdown' #2517

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

1363eb5
Compare
Choose a tag to compare

Changelog

v0.26.1 (2021-02-05)

Full Changelog

Implemented enhancements:

  • Can't configure content type in generated client #1924

Fixed bugs:

  • Generate models from official docker specification #2494
  • Could not resolve reference: invalid character looking for beginning of value #2492

Closed issues:

  • swagger:strfmt annotation incompatible with slice type #2505
  • 0.26.0 - Enum constants are not unique for some special characters #2501
  • upgrade to version 0.26.0 introduces error undefined: validate.WithOperationRequest in generated code #2498
  • Unable to generate specification for "hello world" #2101

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

640fa2f
Compare
Choose a tag to compare

Changelog

v0.26.0 (2021-01-19)

Full Changelog

Implemented enhancements:

  • Generate client: example struct tag is not rendered properly #2445
  • model validations: support minProperties and maxProperties #2444
  • Option to overwrite buffer size on upload file api #2373
  • v0.25.0 generates incorrect imports #2362
  • go-swagger is generating invalid validation functions #2163
  • Unused variable i #1771
  • "swagger generate model" does nothing if no paths are defined #1679
  • Principal should support definition as an interface #1659
  • go-swagger version depends on git #1283
  • Improve readability of templates used for code generation #673
  • option for case insensitivity for enum query params #303
  • Generate markdown representation for a swagger specification #184

Fixed bugs:

  • Optional Headers array parameters generated client code doesn't compile #2471
  • custom tags are not added to instances of objects when specified #2457
  • Go swagger can't validate all uint64 in path parameters #2448
  • authorizationUrl empty breaking mixin and validation #2430
  • swagger validate fails on responses with description field #2429
  • Backticks appearing in tags are not properly handled #2423
  • Shadowing api var in generated main.go #2405
  • How to define properties of an object (that are referenced to definitions) as required ? #2400
  • x-go-type for a custom type in models/ #2385
  • Missing required validation for property referencing string #2381
  • allOf is always pointer using inheritance #2364
  • Wrong generation for required object parameters #2330
  • Required, Non Nil map[string]interface{} #2300
  • Support Basic-Auth and custom HTTP Headers when loading a swagger spec #2263
  • API Client imports wrong operations package when regenerating #2242
  • nested $ref not found #2113
  • Default value for csv parameter []interface{} instead of []string #2096
  • Required object value without type produces broken validator #2081
  • Allow empty string for authorizationUrl in security definition #1775
  • go-swagger generate client generates wrong default formData parameter type for array of strings #1753
  • Client generation breaks on nested structures #1505
  • no consumer registered error when "Transfer-Encoding: chunked" is provided #1430
  • Generated Client - Panic with binary downloads #883
  • Tips for debugging BindValidRequest() errors? #773

Closed issues:

  • Missing info on how to build specific version from source #2474
  • x-omitempty doesn't work with a $ref'ed object #2473
  • Generated client doesn't detect mongodb primitive.ObjectID #2468
  • swagger serve openapi apidocs failed #2463
  • Petstore example does not work #2459
  • How can I merge YAML file after generation with openapi v3 YAML file #2437
  • Backticks in #2422
  • Update generation doc regarding Terms of Services #2421
  • No definition for aliased struct with the same name #2416
  • Embedded uuid field interpreted as bytearray #2404
  • disable try it out button #2402
  • How can I generate swagger:parameters spec using form tag from struct? #2399
  • Why is version always dev? #2395
  • Expanding schema with cyclic ref is underterministic #2393
  • Append cline.Text to classify error #2391
  • principal alias imports bug in v0.25.0 #2372
  • Upload of large files fails due to 32 mb limit #2370
  • Can't set custom PORT #2363
  • is latest go-openapi/errors incompatible with swagger generation? #2361
  • Comitting generated code to version control #2360
  • Is it possible to publish a new release #2357
  • JSON 'unknown field' error when using allOf composition #2350
  • Client File Upload 0 Bytes #1838

Merged pull requests:

  • updated deps to go-openapi libraries #2490 (fredbi)
  • fixed indenting / comment spacing issues #2489 (fredbi)
  • added a configurable var to set the max amount of memory for multipart.ParseMultiPartForm #2488 (fredbi)
  • added example illustrating file upload with a multipart form #2487 (fredbi)
  • Fix 883 #2486 (fredbi)
  • regenerated examples #2485 (fredbi)
  • fixed generated client issues for nested array parameters and response headers #2484 (fredbi)
  • relinted all packages #2481 (fredbi)
  • Removed redundant unit tests from CI #2480 (fredbi)
  • generate client: added support for array parameter in header #2478 (fredbi)
  • added support for minProperties, maxProperties validations #2477 (fredbi)
  • refactored validations handling in models and type resolver #2476 (fredbi)
  • add specific version install info #2475 (blami)
  • added markdown generator #2466 (fredbi)
  • Ensure enum variant name is unique #2464 (mraerino)
  • CLI version: added versioning from module support for go get users #2462 (fredbi)
  • fixed doc in petstore example #2461 (fredbi)
  • refactored, documented and tested tags in models #2460 (fredbi)
  • ensure custom tag is applied to object in generated model (#2457) #2458 (bobcallaway)
  • fixed numerical validations for integer types #2453 (fredbi)
  • test: model tests go parallel #2450 (fredbi)
  • escape backticks in regex patterns #2449 (casualjim)
  • Generate example struct tag if example is provided #2447 (sbstp)
  • auth: added support for adding a principal as an interface #2442 (fredbi)
  • fixed generated package resolution for principal #2440 (fredbi)
  • Added more control over external types #2438 (fredbi)
  • Acknowledged codegen regression fixed #2435 (fredbi)
  • Fixed required aliased type #2434 (fredbi)
  • fixup replace clause left in go.mod #2433 (fredbi)
  • Updated go-openapi #2432 (fredbi)
  • test(generate spec): extra code parsing assertions for the TermsOfService annotation #2431 (fredbi)
  • updated go-openapi dependencies #2427 (fredbi)
  • added validation guards against inconsistent validations #2426 (fredbi)
  • Fixed missing Required validations #2425 (fredbi)
  • fixed server codegen package conflicts when specifying --server-package and --api-package #2424 (fredbi)
  • Change comment in server template: add periods at the end #2418 (alexandear)
  • fix codescan, and support SelectorExpr with response. #2414 (j2gg0s)
  • Fix 2391: Add more infomation to classify error #2392 (tptpp)
  • Fix panics and boost coverage #2390 (wjase)
  • Pass examples to the generated models #2389 (SVilgelm)
  • doc: fix issue of displaying code #2377 (meysampg)
  • Added support to ignore conflicts in mixin command #2375 (stijndehaes)
  • Feature/ReadOnly-Validation Support #2369 (youyuanwu)
  • Fixed diff writing to file called stdout instead of os.StdOut #2367 (wjase)
  • Fix VMware reference. #2366 (zmb3)
  • allow x-nullable hint to override allOf nullability status #2365 (fredbi)
  • Acknowledged fixes from go-openapi/spec updates #2142 (fredbi)

* This Changelog was automatically generated by github_changelog_generator

v0.25.0
f032690
Compare
Choose a tag to compare

Changelog

v0.25.0 (2020-07-18)

Full Changelog

Implemented enhancements:

  • importing struct with x-go-type generates client code which doesnt compile #2224

Fixed bugs:

  • file parameter with maxLength: not enough arguments in call to "github.com/go-openapi/errors".ExceedsMaximum #2342
  • Missing models during client generation #2306
  • Server generation with --name api produces empty strings #2293
  • Custom principal import is missing from generated server code #2283
  • "generate operation" returns "no operations were selected" #2280
  • "generate operation" error "the required flag `-n, --name' was not specified" #2279
  • Generate model may panic on some specs #2161
  • swagger diff --dest="${DEST}": Is not writing output to "${DEST}" #2103
  • Models not importing x-go-type for one of properties #1897

Closed issues:

  • Strange error while swagger generate server! #2358
  • generate operation does not take model package parameter #2355
  • Duplicate struct field generated #2352
  • structures for response errors #2351
  • swagger:meta - $ref on description #2349
  • Add warning to documentation for swagger:meta #2335
  • how to add property in:formData for struct's all field #2323
  • 0.24.0: too many arguments in call to "github.com/go-openapi/errors".Required #2319
  • Build fails with latest go-openapi/errors #2315
  • Raw request body is empty if we try get it inside handler function #2310
  • not yet registered swag #2291

Merged pull requests:

  • adds swaggerui middleware as default /docs site #2359 (casualjim)
  • Adding ModelPackage option to generate operation #2356 (rodriguise)
  • Added a way to override the different authenticator functions in #2354 (ronniel1)
  • Improve client response error message when status code not recognized #2348 (minitauros)
  • fixed missing broken templates after the breaking change in go-openapi/errors #2345 (fredbi)
  • removed unused template #2343 (fredbi)
  • fix imports of external types, when used as dependency in properties, items, etc #2341 (fredbi)
  • enhanced external types: more options to x-go-type #2340 (fredbi)
  • fixed merging issues that caused linting/goimport failures #2339 (fredbi)
  • Add NOTE in swagger:meta for adhering to godoc standard #2338 (AymanArif)
  • refactored generator tests for readability #2337 (fredbi)
  • fix edge case with panic in models because of invalid additionalProperties or AllOf schema #2336 (fredbi)
  • Enhanced generate model CLI: accepts definitions only specs, deprecates some options #2333 (fredbi)
  • Refactored CLI diff commands and associated tests #2332 (fredbi)
  • Fix linting again #2329 (fredbi)
  • more aggressive name deconflicting for inline (anonymous) models generated in the operations package #2328 (fredbi)
  • filter out empty args passed by CLI to select operations #2327 (fredbi)
  • re-enacted CI-based linting #2326 (fredbi)
  • fixed broken imports when specifying principal in external package #2325 (fredbi)
  • fix(generator): fixed generated API name when terminated with suffix "api" #2322 (fredbi)
  • feature: strict responders option #2312 (onokonem)

* This Changelog was automatically generated by github_changelog_generator

v0.24.0
094421c
Compare
Choose a tag to compare

Changelog

v0.24.0 (2020-06-16)

Full Changelog

Fixed bugs:

  • Body not written to request on post when schema is discriminated/anyOf/oneOf #1233

Closed issues:

  • httptest'ing - scope not getting picked up #2307
  • not able to run my swagger #2298
  • websocket: response does not implement http.Hijacker #2288
  • client middleware? #2277
  • x-www-form-urlencoded server generation issue #2273
  • Spec generation docs out of date #2270
  • Generated client is receiving 422 error, but I can't see the body to figure out what is missing #2261
  • How can I get requester client IP in my controller ? #2260
  • Redirecting links in the docs #2253
  • Please make a new release for Go 1.14 #2239
  • Properties in "AllOf1" structs don't get marshaled in generated client #1232

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

3596b40
Compare
Choose a tag to compare

Changelog

v0.23.0 (2020-03-14)

Full Changelog

Breaking changes:

  • Failed to load template schemabody #2223

Implemented enhancements:

  • Add middleware router or a kind of path matching #2234
  • Incompatible naming convention for a path starting with one letter word #2213

Fixed bugs:

  • Code generation is broken due to stricter template syntax checks in Go 1.14 #2215
  • swagger generate spec -m gives inconsistent json every other run #2066

Closed issues:

  • How to get matched route in a middleware ? #2238
  • Client generation failed: panic: object has no key "Map" #2237
  • generated server arguments not working #2227
  • codescan/meta.go: cannot use promoted field ContactInfoProps.URL in struct literal of type #2214
  • change project name for go-netbox #2206

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

5773cbe
Compare
Choose a tag to compare

Changelog

v0.22.0 (2020-02-02)

Full Changelog

Implemented enhancements:

  • Enable x-go-name in parameters #2167
  • How to generate a model with JSON ',string' directive for an int64 properties? #2144
  • Swagger tags starting with integer make formatting errors in operations #2111
  • Swagger Tags interfere with imported packages #2057
  • Issue generating servers which have 'api' in their name #1971
  • Support go modules #1724
  • generate spec: json.RawMessage doesn't represent the intent. #1622
  • Generated code don't pass on go vet #1573
  • Could Client be a concrete implementation of an interface? #1138
  • Unable to override operations package name #1049

Fixed bugs:

  • Build fails due to duplicate methods #2199
  • Enum value "" generating code that does not compile #2139
  • byte type string causes "models/test_swagger.go:43:6: k declared and not used" #2136
  • x-omitempty handling is incorrect with $ref #2116
  • Flatten (and generate) fails intermittently #2092
  • panic: Invalid schema provided to SchemaValidator: object has no key "default" #2063
  • Data Race between Serve() and Shutdown() #1943
  • doc.go fails to compile when passed a certain invalid mime-type #1663
  • Multiple media parameters on producers generate code that does not compile #1377

Closed issues:

  • Swagger adds to a spec not exported parameters fields #2164
  • generate client library: definition "" contains duplicate properties: [] (or crash when --skip-validation) #2156
  • model will not be generate if it's used as a map's value type in response body #2145
  • How do I specify the json body parameters within the Go code for "swagger:operation" like I do for "swagger:route"? #2134
  • why generate operation is required name option? #2123
  • Endless loop in swagger generate spec #2122
  • Add ability for server pre-shutdown hook #2108
  • File type in form-data #2105
  • add parameters on router #2104
  • unrecognized import path "dmitri.shuralyov.com/gpu/mtl" #2094
  • docs/guideline is outdated #2091
  • generated code can not pass gofmt #2089
  • faq_model.md link to more info about date is broken #2088
  • v0.21.0 not published on bintray #2085
  • Please create a new release #2080
  • Randomly getting peer connection reset error with the generated client #1954
  • swagger generate server exception #1882
  • Please add GPG Public Key to deb repo #1812

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

078d718
Compare
Choose a tag to compare

Change Log

v0.21.0 (2019-10-19)

Full Changelog

Implemented enhancements:

  • Add warning messages for inconsistent parameter types and validations #2069

Fixed bugs:

  • JSON tags are not honored in case of allOf. #2071

Closed issues:

  • How to register a handler for the server? #2083
  • Flatten before serve #2078
  • Additional keys in response model #2073
  • Go v0.20.0: checksum mismatch when using GOPROXY=direct #2065
  • Code generation fails when swagger is built with go1.13 #2058
  • feature: support custom swagger type #1183

Merged pull requests:

* This Change Log was automatically generated by github_changelog_generator