GoSwagger v0.23.0 Release Notes

Release Date: 2020-03-15 // 4 months 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 #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


Previous changes from v0.22.0

  • πŸ”„ 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
    • 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 inside scan 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