GoSwagger v0.25.0 Release Notes

Release Date: 2020-07-18 // 8 months 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


Previous changes from v0.24.0

  • ๐Ÿ”„ 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