Go Swagger Versions Save

Swagger 2.0 implementation for go

v0.25.0

3 years ago

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

3 years ago

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

v0.23.0

4 years ago

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:

  • [DOCKER] don't run swagger with "root" #2240 (deogracia)
  • Add middleware setter for a route (path prefix) #2236 (ilyakaznacheev)
  • Working around minor shortcoming in swag.ToGoName #2226 (fredbi)
  • fixed schemabody.gotmpl template regression caused by #2221 #2225 (fredbi)
  • Fix goimports step incorrectly rewriting imports #2222 (misha-ridge)
  • Model templates refactoring for readability -- NO CHANGE IN FUNCTIONALITY #2221 (fredbi)
  • Task: Update template imports to be consistent and ordered #2219 (kenjones-cisco)
  • fix go-swagger#2066 issue #2209 (mfranczy)
  • Fix #2206: Change project name for go-netbox #2207 (kobayashi)
  • add option in model generation to output all definitions regardless of usage #2205 (dan-j)

* This Changelog was automatically generated by github_changelog_generator

v0.22.0

4 years ago

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

v0.21.0

4 years ago

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

v0.20.1

4 years ago

Change Log

v0.20.1 (2019-08-19)

Full Changelog

Fixed bugs:

  • 0.20.0 - invalid enum constants for "+" and "-" values #2050

Merged pull requests:

  • Fixed the few remaining linting issues in generator package #2052 (fredbi)
  • Fixed regression on name generation for "+" or "-" enum values #2051 (fredbi)
  • use slices for collecting parameters to retain ordering #2003 (casualjim)

* This Change Log was automatically generated by github_changelog_generator

v0.20.0

4 years ago

Change Log

v0.20.0 (2019-08-18)

Full Changelog

Implemented enhancements:

  • How To mark route deprecated? #2042
  • Pass OAuth2 scheme name to handler and add it on the request context #2041
  • Add Payload\(\) \*models.TheError to error types #2018
  • Use first tag for client package #1950
  • Add support for types of the new mongo-go-driver #1854
  • Bug or new logic to generate code with --with-flatten=minimal - by default ? #1704
  • Support for integer enums in go-swagger #1672
  • File parameter generated incorrectly in client code #1020
  • Add a diff command #151
  • Keep object's parameters order as specified in swagger spec definition #125

Fixed bugs:

  • unknown type for field interface{}: *types.Interface #2011
  • Unknown type for field: *types.Map #2007
  • New scanner (go module aware) may randomly fail #1997
  • Server crashes when polymorphic value is absent in post body #1993
  • Mixin host issue #1965
  • Two different parameter names derived from specification #1952
  • Swagger generates and uses different models in case of definition name starts with Digit #1937
  • Generating uncompilable code when response code >= 512 #1893
  • swagger mixin bug #1886
  • swagger mixin sends all output to stderr #1878
  • Why is docker image "latest" NOT aligned with the latest tag? #1873
  • Duplicate constants when referencing definitions with enums in another files #1851
  • swagger generate spec throws a lot of errors with golang 1.11 #1671
  • panic: interface conversion: interface {} is *mypackage.PostActionsDefault, not *mypackage.PostActionsCreated #1518
  • Client parameters don't set body when model is an interface #1490
  • Generated client parameter does not set request body for schema type string format binary #1339
  • Client Request Parameters - lint error #973

Closed issues:

  • swagger failed to validate type: file in formData parameters. #2039
  • stratoscale client template breaks on multiline descriptions #2036
  • No useful documentation exists for spec generation #2032
  • swagger:strfmt annotation incompatible with slice type #2030
  • Can go-swagger support this json tag? Id int64 "json:id,string"? #2029
  • int64 "json:id,string" #2028
  • go1.11 generate spec doesn't respect exclude #2023
  • Cannot use dynamic certificate selection on servers #2016
  • unknown flag `b' swagger generate #2005
  • Swagger generate spec has broken on Gitea #2001
  • swagger:ignore not working #1994
  • Getting started guide #1989
  • Working with type: object in handlers #1967
  • Generated and customized go-swagger server compiles, executes and initializes correctly, but does not handle any requests #1953
  • Query parameter can't be named 'append' when enum appearing also #1948
  • generate spec with ordered keys #1946
  • Generate property with empty string ('') #1945
  • Unable to deserialize array int json: cannot unmarshal string into Go struct. Failed due to array having integer and string. Fix in comments #1932
  • How do I access the response headers? #1918
  • POSTing to API that returns a 201 with a location header produces: (*interface {}) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface" #1917
  • Response struct goes under headers #1908
  • dep ensure -v report models is missing #1835
  • Installing with go get and go modules = on #1786
  • Swagger generate: can not import package #1784
  • It can not stop with recursive struct #1773
  • Basic auth in stratoscale templates #1765
  • Generate spec does not work with Go Modules #1681

Merged pull requests:

* This Change Log was automatically generated by github_changelog_generator

v0.19.0

5 years ago

Change Log

v0.19.0 (2019-03-24)

Full Changelog

Implemented enhancements:

  • Support for parsing property vendor extensions #1875
  • Provide check for runtime version #818

Fixed bugs:

  • Broken handling of $ref to a definition which maps to interface{} #1859
  • External x-go-type imports not resolved for arrays and references #1719
  • Race on call to Serve() and _____Listener() functions #1465
  • Responses defined in schema: restapi/operations/xxx_responses.go:54:18: cannot make type models.YY #1260

Closed issues:

  • Response struct goes under headers #1908
  • swagger generate error #1906
  • What should a custom Application Consumer return/produce? #1901
  • Server generation is much slower when using "--model-package" #1896
  • boolean parameters with default attribute, if parameter is not configured in the json, swagger will generate a null pointer for this field #1892
  • in: body not work as expected? #1890
  • Spec generation - Multiple File Upload with multipart form #1884
  • omitempty #1883
  • Can't docker pull the latest versions by tag #1871
  • How to use go-swagger with easyjson? #1868
  • validator fails to report path parameters defined defined at operation level #1866
  • Invalid auto generated file with type:file in output. #1853
  • homebrew installation silently fails on generate #1261

Merged pull requests:

* This Change Log was automatically generated by github_changelog_generator

v0.18.0

5 years ago

Change Log

v0.18.0 (2018-12-22)

Full Changelog

Implemented enhancements:

  • Client cannot unmarshal struct #1729
  • swagger generation with --with-context result in compiles error #1684
  • Can't have server code in subdirectory #1624
  • Proposal: x-omitempty for general types #1623
  • When generating validations struct pkg references needs to be preserved #578

Fixed bugs:

  • Duplicated parentheses #1839
  • Regression with gob encoder optimization #1824
  • generated embedded_spec.go removing refs #1816
  • Duplicated imports in configure.go #1808
  • Recursive model errors during flattening stage of generate server #1796
  • Invalid paths in go generate directive #1789
  • race in handleShutdown #1781
  • non-compiling code if an API method contains a parameter named 'result' #1778
  • Are external references supported? #1774
  • One spec in multiple files (data types logic override) - error of generating #1767
  • go-swagger generate server: minItems (maxItems) on array fails during validation. #1755
  • Client wont compile with a route tagged "test" #1683
  • Generate client does not handle "-" dashes in --client-package consistently #1157

Closed issues:

  • body parameter of type string results in code that doesn't compile #1832
  • Add an option for placing the docs/docs.go file #1811
  • Deb version 0.17.2 doesn't contain the binary on bintray #1793
  • Parameters in swagger:route produce validation warnings #1785
  • Do not escape '&' character in json response #1763
  • Deb installation is broken with the new version with the "v" prefix #1760
  • Validate returns different output in console and logs #1722

Merged pull requests:

* This Change Log was automatically generated by github_changelog_generator

v0.17.2

5 years ago

Change Log

v0.17.2 (2018-10-24)

Full Changelog

Closed issues:

  • invalid client code generated for spec #1770

Merged pull requests:

* This Change Log was automatically generated by github_changelog_generator