GoSwagger v0.20.0 Release Notes

Release Date: 2019-08-19 // over 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:

    • โšก๏ธ 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