GoSwagger v0.20.0 Release Notes
Release Date: 2019-08-19 // over 4 years ago-
๐ 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