Changelog History
Page 1
-
v0.25.0 Changes
July 18, 2020π Changelog
v0.25.0 (2020-07-18)
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 Changes
June 16, 2020π Changelog
v0.24.0 (2020-06-16)
π 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:
- β‘οΈ update to errors that carry the value #2313 (casualjim)
- π fix: afld check nil #2303 (bbxytl)
- Set struct tags on generator options #2289 (vincentvanderweele)
- π Fix multiline descriptions for the stratoscale template #2282 (JoakimSoderberg)
- π Allow passing struct tags from command line #2281 (vincentvanderweele)
- π fix wrong pointer designation #2274 (casualjim)
- β‘οΈ Update docs for spec generation #2271 (glindsell)
- π Improvements for XML support #2265 (nubenum)
- β Add support of case-insensitive enums (#303) #2264 (pheepi)
- π Basic support for XML model generation #2241 (nubenum)
* This Changelog was automatically generated by github_changelog_generator
-
v0.23.0 Changes
March 15, 2020π Changelog
v0.23.0 (2020-03-14)
π₯ 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 #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 Changes
February 02, 2020π Changelog
v0.22.0 (2020-02-02)
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
- 0οΈβ£ 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:
- π¦ #2199 Remove the duplicate
withEnum
functions insidescan
package #2200 (sam016) - regen samples #2196 (fredbi)
- β‘οΈ updated go.mod with go get -u ./... && go mod tidy #2195 (fredbi)
- π· Throttle memory in codegen CI #2193 (fredbi)
- π Fix client generation's mapvalidator with additionalProperties #2190 (hmalphettes)
- π¦ Review of codegen imports and package name mangling #2181 (fredbi)
- π fix some typo I find in custom-server.md #2179 (yuzp1996)
- π Fixed release Dockerfiles #2178 (fredbi)
- π¨ refactored code generator #2177 (fredbi)
- π Feature/morlays enum #2176 (sam016)
- π¨ CLI: refactored CLI commands to introduce command groups #2173 (fredbi)
- π changes for #2054 - extension fields in info.contact do not propagateβ¦ #2171 (kul-amr)
- π Fix processing type declarations #2169 (novasharper)
- feat(parameters): query & path parameters now accept x-go-name #2168 (maxatome)
- ignore not exported params fields #2165 (mfranczy)
- π fix typo #2162 (derekperkins)
- π fix: missing adding postDecls in response map field #2159 (autumn31)
- CI codegen #2158 (fredbi)
- β add x-go-json-string #2157 (mail2fish)
- π fixed some edge cases when deconflicting client timeout parameters #2155 (fredbi)
- π Speedup 'swagger generate' by not re-parsing schemas many times #2152 (misha-ridge)
- Client template interfaces #2151 (fredbi)
- π Bugfix/data race serve shutdown #2150 (fredbi)
- π fix(doc): fixed broken link in models FAQ #2149 (fredbi)
- π Fixed x-omitempty in the case of $ref'ed schemas #2148 (fredbi)
- π fix(doc): updated contributing guidelines #2147 (fredbi)
- π fix(model): fixes validations for format="byte" (no format validation) #2146 (fredbi)
- β Add support for empty enum values #2143 (fredbi)
- π Fix overwriting security definitions on call Server.SetAPI() #2140 (h0mjam)
- π fix endless loop issue for pkg import analysis #2138 (mfranczy)
- π Support multiple mime type specifications, with parameters #2120 (fredbi)
- β Add .Context to location template context #2118 (aeneasr)
- π Support AllowTemplateOverride in
generate client
#2117 (aeneasr) - π¨ CI refactoring #2114 (fredbi)
- β Issue:2108 - Adding files/tests to support PreServerShutdown - Take2 #2110 (keperry)
- π codescan: Natively support json.RawMessage #2107 (aeneasr)
- π support json tag with no name #2095 (okhowang)
- β‘οΈ Update go-openapi/analysis #2093 (fredbi)
- π fix: generated code can not pass gofmt #2089 #2090 (elonzh)
- β‘οΈ updates docs for deb install with apt-secure #2087 (casualjim)
- regenerated examples with v0.21.0 #2086 (fredbi)
* This Changelog was automatically generated by github_changelog_generator
-
v0.21.0 Changes
October 19, 2019π Change Log
v0.21.0 (2019-10-19)
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:
- β Add OpenAPI Terraform provider to 'Who is using this project?' section #2084 (dikhan)
- β Add flag to allow overwriting protected templates #2082 (dominikznidar)
- Feat(serve) : Add flatten flag to serve command #2079 (seblegall)
- β added contrib to the docker image #2076 (ronnie-stratoscale)
- Keep spec orders for mixin command #2074 (BupycHuk)
- π fixes undue propagation of x-go-name to tags in AllOf serializer #2072 (fredbi)
- π§ Provide example for configure command-line flags #2068 (antonok)
- β Add default flag support
import "flags"
#2067 (hisunwei) - β Added installation instructions through docker for windows users #2061 (EliCDavis)
- β‘οΈ update go-openapi libraries for go 1.13 fix #2059 (casualjim)
* This Change Log was automatically generated by github_changelog_generator
-
v0.20.1 Changes
August 20, 2019π Change Log
v0.20.1 (2019-08-19)
π 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 Changes
August 19, 2019π Change Log
v0.20.0 (2019-08-18)
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:
- β‘οΈ update examples #2049 (casualjim)
- β‘οΈ update builder template to pass along oauth2 scheme name #2048 (casualjim)
- β Add docs and test coverage for route deprecated property #2047 (MetalRex101)
- π spec generation: added support for deprecated tag in route annotations #2045 (fredbi)
- β Add support for --strict-additional-properties #2040 (connesc)
- π Fix multi-line comments in stratoscale client template #2037 (avorima)
- π fix:walkImports should recursively traverse the imported package #2034 (d0ngw)
- π Fixed template_layout type-o #2033 (delaman)
- π fixes detecting base64 for []byte #2031 (casualjim)
- π fix typo and add more parser tests #2025 (gregdhill)
- enable explicit gen spec inclusion / exclusion or for all deps #2024 (gregdhill)
- β Add method
Payload\(\)
to error types #2019 (aeneasr) - π§ 2016 - Allow dynamic TLS configurations in servers #2017 (mmussomele)
- also consider interface as valid body for response and request #2012 (casualjim)
- consider maps as valid body for response and parameter #2010 (casualjim)
- β disable -race for testing phase, but allow for PR #1944 to use -race #2008 (casualjim)
- skip fields when they are not exported #2006 (casualjim)
- π¨ refactor circleci build #2004 (casualjim)
- π use slices for collecting parameters to retain ordering #2003 (casualjim)
- β‘οΈ updated dependencies #1999 (fredbi)
- Codegen edges cases #1998 (fredbi)
- Model validation/polymorphism: added required / non required check #1996 (fredbi)
- Set govet again #1995 (fredbi)
- Go module aware scan #1991 (casualjim)
- π feat: Add getting started section to docs/use/spec.md #1990 (pdrum)
- β Integrates flatten fixes #1986 (fredbi)
- Honour JSON ,string directive of ptr field when generating spec #1985 (wych42)
- π ci: made codegen-nonreg.sh script less sensitive to merge conflicts #1983 (fredbi)
- π fixed push latest tag on releases #1982 (fredbi)
- β Added support for non-standard http codes #1980 (fredbi)
- π Fix 1878 #1979 (fredbi)
- Generated client: handles unexpected successful responses #1978 (fredbi)
- π acknowledge various fixes for client #1977 (fredbi)
- π chore(ci): set codecov patch expectation to a fixed level #1976 (fredbi)
- π fix(server): generates server to enable http/2 #1975 (fredbi)
- π Fix basic auth for stratoscale template #1969 (JoakimSoderberg)
- keep spec order on nested objects #1968 (efi-tectonic)
- π¦ Multiple tags operations: deduce package from first tag #1964 (maxatome)
- β Add CodeTriage badge to go-swagger/go-swagger #1963 (codetriage-readme-bot)
- π¨ do not force set the api logger to log.Printf #1962 (djgilcrease)
- 151 add a diff sub command #1961 (wjase)
- π scan: proper parse for numeric elements (future validation pass) #1959 (d7561985)
- π urlbuilder template fixed to support query params named 'append' #1949 (jimturnquist)
- π support keep spec properties order #1939 (efi-tectonic)
- π¦ x-go-type: if no imports are specified, assume that the referred type is inside the same package #1935 (e-nikolov)
- π Fix access_token typo #1926 (bithavoc)
* This Change Log was automatically generated by github_changelog_generator
-
v0.19.0 Changes
March 24, 2019π Change Log
v0.19.0 (2019-03-24)
Implemented enhancements:
π 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:
- Generate properties with x-order above ones without #1907 (e-nikolov)
- Server config api operation null check #1905 (kellrott)
- π Fix some typos #1900 (knweiss)
- β test coverage increase #1889 (d7561985)
- π spec gen/response: support swagger:file #1888 (d7561985)
- β Add support for property extensions #1876 (fdelayen)
- β Add online playground to README.md #1870 (jankeromnes)
- π camelize error string to follow go style guide #1869 (Liooo)
- π Fixed regression following PR #1849: wrong initializer in response #1861 (fredbi)
- β Add test case without output file for expand.go #1855 (saromanov)
- π Models: add support for $ref indirections #1849 (fredbi)
- π Improved support for x-go-type on compound objects #1848 (fredbi)
- Check that only a single parameter is passed. #1846 (AlekSi)
- βοΈ Correct doc typos #1844 (maxatome)
* This Change Log was automatically generated by github_changelog_generator
-
v0.18.0 Changes
December 22, 2018π Change Log
v0.18.0 (2018-12-22)
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:
- π Prepare for v0.18.0 release #1843 (casualjim)
- β‘οΈ FAQ update #1842 (fredbi)
- Models: avoids redundant "()" on .ValueExpression #1840 (fredbi)
- π route: add support description response tag at path #1829 (d7561985)
- π Fix #1824 #1827 (fredbi)
- β Add HandlerAPI() function to stratoscale template #1821 (maxatome)
- β Remove x net context from generated code #1819 (fredbi)
- β‘οΈ Acknowledge fix #1816 with go-openapi updates #1818 (fredbi)
- π Fixed go generate paths in configure_xxx.go #1810 (fredbi)
- π Fixed regression on Windows introduced by #1804 #1809 (fredbi)
- π Handle array examples; document Example usage #1807 (leon-barrett)
- π Deprecates
--with-context
option #1806 (fredbi) - π Fixes race condition in generated server #1805 (fredbi)
- π¦ More mangling for generated package names and path #1804 (fredbi)
- π Fix slice validations in body param #1803 (fredbi)
- π chore: update vendor for performance #1802 (orisano)
- π Use JSON for examples of type object #1801 (leon-barrett)
- π Fix go vet 11 issue with debugAsJSON func #1800 (fredbi)
- π Fix flattening spec with remote circular $ref #1799 (fredbi)
- π Allow '?' character in route path #1792 (andrewmilson)
- There is a panic when invalid schema of route/operation is used in spec generation. It should prevent it #1791 (marsianin)
- π fix client cannot unmarshal struct which contains null #1788 (AlexInGitHub)
- Absorbing api names across multiple lines #1783 (liyuankui)
- π fixes #1778. Allow 'result' name for API parameter #1780 (mtfelian)
* This Change Log was automatically generated by github_changelog_generator
-
v0.17.2 Changes
October 25, 2018π Change Log
v0.17.2 (2018-10-24)
Closed issues:
- invalid client code generated for spec #1770
π Merged pull requests:
* This Change Log was automatically generated by github_changelog_generator