Changelog
v0.29.0 (2022-01-23)
Implemented enhancements:
- custom generator / export generation data #2055
Closed issues:
- crash in swagger generate spec --scan-models #2690
- Support nested body params in map objects. #2684
- My uint's becomes int64 and so does my byte's #2677
- go-swagger generate invalid code #2667
- When go-swagger will have support openApi 3.0 ? #2666
- How to read body in handler? (using params cause fields to be re-ordered) #2665
- Add Release Arch for darwin_arm64 #2658
- Is it possible to the order in which the APIs are shown in swagger #2646
- how to combine swagger doc for multiple services running in different ports into a single SWAGGER UI #2645
- Client generator generates code files with invalid/broken imports #2609
- couldn't find a swagger spec #2580
Merged pull requests:
- Replace bindata with go:embed #2697 (kaisawind)
- Fixed exclude spec not work issue #2696 (nanjj)
- Fix broken docs link to pflag project #2695 (pgier)
- avoid nil pointer panic #2691 (dirkm)
- Add support for nested map property names in errors. #2685 (veleek)
- enhancement: Add
.Pointer\(\)
method to enums. #2680 (thetorpedodog) - build binaries for Darwin arm64 #2671 (parsnips)
- genspec: use schema only for params in body #2661 (crazytyper)
- codescan: use TypeSpec.Doc over GenDecl.Doc #2659 (crazytyper)
* This Changelog was automatically generated by github_changelog_generator
Changelog
v0.28.0 (2021-10-09)
Fixed bugs:
Closed issues:
- The CLI should return a JSON output rather than objects #2640
- Log-output is not working for validate command #2631
- unsupported type "invalid type" when add a new empty go file #2630
- how to response different field of response struct by different routes? #2629
- Using swagger:strfmt on a []byte type (UUID) infers the type as an array of strings #2627
- "github.com/go-openapi/errors".CompositeError has no field or method ValidateName #2623
- undefined: validate.ReadOnly #2613
- [BUG]gen model-package with relative path has incorrect imports from v0.25.0 #2608
- Error: "source formatting on generated source "autoconfigure" failed" on server generate #2602
- Error: "source formatting on generated source "autoconfigure" failed" if StrictResponders and ImplementationPackage were both set for a server generation #2601
- How to change the case style (pascal, camel) of a struct tag #2600
- 05 Method Not Allowed response instead of 400 with incorrect validation details #2598
- Support nested body params for CompositeError #2594
- [apiKey] auth by two apikey together(AND Operation) #2586
- How to add authInfo to request with generated client #2584
- Is there good to way to omit readonly key #2581
- Generating Spec results in Invalid Type Error #2577
- Integration with viper #2572
- unsupported type "invalid type" #2569
- Cannot install directly from github #2560
- Generated server code with Go v1.15 and above generates deprecation warning for TLSConfig #2559
Merged pull requests:
- Add github workflow to validate bindata.go #2642 (youyuanwu)
- Fix auto-configure example #2641 (youyuanwu)
- Fix generate server with flag --keep-spec-order #2621 (elipavlov)
- 2617 array params #2620 (dimovnike)
- update build containers to freeze to go 1.15 for now #2606 (casualjim)
- Removed bracket that was causeing an error if StrictResponders and Im… #2603 (mattalexx)
- Support nested body params for CompositeError #2595 (veleek)
- Build from interface panic fix #2591 (Pungyeon)
- fix a broken link in todo-list tutorial #2589 (rueyaa332266)
- remove call to deprecated function
BuildNameToCertificate
#2582 (rcousineau-xandr) - Added ppc64le support on circleci & goreleaser #2574 (mgiessing)
- CLI nil ptr dereference bug fix, and support enum completion #2571 (youyuanwu)
- add option to add your own path #2570 (matthewdaltonamount)
- CLI code generation is ready for release #2562 (youyuanwu)
- add enum description #2561 (d0ngw)
- Generate CLI: Able to generate cli for docker, and major functionalities complete #2556 (youyuanwu)
* This Changelog was automatically generated by github_changelog_generator
Changelog
v0.27.0 (2021-03-31)
Breaking changes:
- Updating go-openapi breaks $ref on windows #2428
Implemented enhancements:
- Pointer convertors for enum types are not generated. #2482
- extension fields in info.contact do not propagate to embedded spec #2054
Fixed bugs:
- Client Headers in response panic #2544
- Swagger expand add invalid authorizationUrl key in securityDefinitions #2506
Closed issues:
- Unable to install go-swagger package #2555
- Question: How can I get the raw response body without decoding? #2552
- There is a typo in docs/install.md #2550
- can't generate header from source code #2532
- Authentication tutorial missing required Swagger spec updates #2530
- Use-case for --exclude-configuration or public function SetMiddleware() #2529
- Documention translate #2526
- Unknown command 'markdown' #2517
Merged pull requests:
- refactor CLI generate, support datetime, support multi success resp #2554 (youyuanwu)
- #1472 SecurityPrincipalFrom() and request reference #2553 (andrefsp)
- Fix a typo in install.md #2551 (masa08)
- Bugfix: Client response headers panic #2548 (kenjones-cisco)
- CLI implementation (generate command line tool) #2545 (youyuanwu)
- generator: introduce support for "description" struct tag #2542 (redlicha)
- generator: fix initialization of empty arrays #2534 (redlicha)
- Update Authentication tutorial with spec changes #2531 (slawekzachcial)
- enhancement: added enum pointer factory to codegen #2514 (fredbi)
- windows support: updated go-openapi dependencies #2513 (fredbi)
- Update install.md #2512 (ashishtiwari1993)
- Auto wire api and backend #2510 (youyuanwu)
* This Changelog was automatically generated by github_changelog_generator
Changelog
v0.26.1 (2021-02-05)
Implemented enhancements:
- Can't configure content type in generated client #1924
Fixed bugs:
- Generate models from official docker specification #2494
- Could not resolve reference: invalid character looking for beginning of value #2492
Closed issues:
- swagger:strfmt annotation incompatible with slice type #2505
- 0.26.0 - Enum constants are not unique for some special characters #2501
- upgrade to version 0.26.0 introduces error
undefined: validate.WithOperationRequest
in generated code #2498 - Unable to generate specification for "hello world" #2101
Merged pull requests:
- added sudo to debian install #2509 (somersbmatthews)
- Update-ReadOnly-Documentation #2508 (youyuanwu)
- add client option to client template. #2507 (gmidorii)
- Fix input swagger file docs for spec generation #2504 (oliverbenns)
- Generator: Handle special characters *, /, and = #2502 (armsnyder)
- fixed map elements which are arrays should never be rendered with a pointer #2497 (fredbi)
- updated go-openapi/spec and go-openapi/loads #2496 (fredbi)
- fix: use single quotes for pwd in alias #2495 (jadwahab)
* This Changelog was automatically generated by github_changelog_generator
Changelog
v0.26.0 (2021-01-19)
Implemented enhancements:
- Generate client: example struct tag is not rendered properly #2445
- model validations: support minProperties and maxProperties #2444
- Option to overwrite buffer size on upload file api #2373
- v0.25.0 generates incorrect imports #2362
- go-swagger is generating invalid validation functions #2163
- Unused variable i #1771
- "swagger generate model" does nothing if no paths are defined #1679
- Principal should support definition as an interface #1659
- go-swagger version depends on git #1283
- Improve readability of templates used for code generation #673
- option for case insensitivity for enum query params #303
- Generate markdown representation for a swagger specification #184
Fixed bugs:
- Optional Headers array parameters generated client code doesn't compile #2471
- custom tags are not added to instances of objects when specified #2457
- Go swagger can't validate all uint64 in path parameters #2448
- authorizationUrl empty breaking mixin and validation #2430
- swagger validate fails on responses with description field #2429
- Backticks appearing in tags are not properly handled #2423
- Shadowing api var in generated main.go #2405
- How to define properties of an object (that are referenced to definitions) as required ? #2400
- x-go-type for a custom type in models/ #2385
- Missing required validation for property referencing string #2381
- allOf is always pointer using inheritance #2364
- Wrong generation for required object parameters #2330
- Required, Non Nil map[string]interface{} #2300
- Support Basic-Auth and custom HTTP Headers when loading a swagger spec #2263
- API Client imports wrong operations package when regenerating #2242
- nested $ref not found #2113
- Default value for csv parameter []interface{} instead of []string #2096
- Required object value without type produces broken validator #2081
- Allow empty string for authorizationUrl in security definition #1775
- go-swagger generate client generates wrong default formData parameter type for array of strings #1753
- Client generation breaks on nested structures #1505
- no consumer registered error when "Transfer-Encoding: chunked" is provided #1430
- Generated Client - Panic with binary downloads #883
- Tips for debugging BindValidRequest() errors? #773
Closed issues:
- Missing info on how to build specific version from source #2474
- x-omitempty doesn't work with a $ref'ed object #2473
- Generated client doesn't detect mongodb primitive.ObjectID #2468
- swagger serve openapi apidocs failed #2463
- Petstore example does not work #2459
- How can I merge YAML file after generation with openapi v3 YAML file #2437
- Backticks in #2422
- Update generation doc regarding Terms of Services #2421
- No definition for aliased struct with the same name #2416
- Embedded uuid field interpreted as bytearray #2404
- disable try it out button #2402
- How can I generate
swagger:parameters
spec using form tag from struct? #2399 - Why is version always dev? #2395
- Expanding schema with cyclic ref is underterministic #2393
- Append cline.Text to classify error #2391
- principal alias imports bug in v0.25.0 #2372
- Upload of large files fails due to 32 mb limit #2370
- Can't set custom PORT #2363
- is latest go-openapi/errors incompatible with swagger generation? #2361
- Comitting generated code to version control #2360
- Is it possible to publish a new release #2357
- JSON 'unknown field' error when using allOf composition #2350
- Client File Upload 0 Bytes #1838
Merged pull requests:
- updated deps to go-openapi libraries #2490 (fredbi)
- fixed indenting / comment spacing issues #2489 (fredbi)
- added a configurable var to set the max amount of memory for multipart.ParseMultiPartForm #2488 (fredbi)
- added example illustrating file upload with a multipart form #2487 (fredbi)
- Fix 883 #2486 (fredbi)
- regenerated examples #2485 (fredbi)
- fixed generated client issues for nested array parameters and response headers #2484 (fredbi)
- relinted all packages #2481 (fredbi)
- Removed redundant unit tests from CI #2480 (fredbi)
- generate client: added support for array parameter in header #2478 (fredbi)
- added support for minProperties, maxProperties validations #2477 (fredbi)
- refactored validations handling in models and type resolver #2476 (fredbi)
- add specific version install info #2475 (blami)
- added markdown generator #2466 (fredbi)
- Ensure enum variant name is unique #2464 (mraerino)
- CLI version: added versioning from module support for go get users #2462 (fredbi)
- fixed doc in petstore example #2461 (fredbi)
- refactored, documented and tested tags in models #2460 (fredbi)
- ensure custom tag is applied to object in generated model (#2457) #2458 (bobcallaway)
- fixed numerical validations for integer types #2453 (fredbi)
- test: model tests go parallel #2450 (fredbi)
- escape backticks in regex patterns #2449 (casualjim)
- Generate example struct tag if example is provided #2447 (sbstp)
- auth: added support for adding a principal as an interface #2442 (fredbi)
- fixed generated package resolution for principal #2440 (fredbi)
- Added more control over external types #2438 (fredbi)
- Acknowledged codegen regression fixed #2435 (fredbi)
- Fixed required aliased type #2434 (fredbi)
- fixup replace clause left in go.mod #2433 (fredbi)
- Updated go-openapi #2432 (fredbi)
- test(generate spec): extra code parsing assertions for the TermsOfService annotation #2431 (fredbi)
- updated go-openapi dependencies #2427 (fredbi)
- added validation guards against inconsistent validations #2426 (fredbi)
- Fixed missing Required validations #2425 (fredbi)
- fixed server codegen package conflicts when specifying --server-package and --api-package #2424 (fredbi)
- Change comment in server template: add periods at the end #2418 (alexandear)
- fix codescan, and support SelectorExpr with response. #2414 (j2gg0s)
- Fix 2391: Add more infomation to classify error #2392 (tptpp)
- Fix panics and boost coverage #2390 (wjase)
- Pass examples to the generated models #2389 (SVilgelm)
- doc: fix issue of displaying code #2377 (meysampg)
- Added support to ignore conflicts in mixin command #2375 (stijndehaes)
- Feature/ReadOnly-Validation Support #2369 (youyuanwu)
- Fixed diff writing to file called stdout instead of os.StdOut #2367 (wjase)
- Fix VMware reference. #2366 (zmb3)
- allow x-nullable hint to override allOf nullability status #2365 (fredbi)
- Acknowledged fixes from go-openapi/spec updates #2142 (fredbi)
* This Changelog was automatically generated by github_changelog_generator
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
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
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
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
- 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
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