Go Swagger Versions Save

Swagger 2.0 implementation for go

v0.31.0

4 days ago

Changelog

v0.31.0 (2024-05-12)

Full Changelog

Implemented enhancements:

  • doc: refurbish doc site #3086
  • Diff should detect extension value changes #2984
  • Diff does not report on request param extensions #2983
  • add support for ULID to swagger:strfmt #2467
  • Flatten changes case on definitions #2334
  • External $refs and polymorphism: models for subtypes not generated #1885
  • Add validation for a 'readOnly' property #936
  • API Gateway vendor extensions? #659
  • edit but don't overwrite configure_xxx.go #397

Fixed bugs:

  • Adding or removing a schema from response is not being recorded in the diff #3074
  • generating a command line : undefined: cli #2969
  • Adding an optional field to request body shouldn't be a breaking change #2962
  • Go-swagger diff runtime error when comparing schema with different response codes #2952
  • v0.30.4 panics during flatten #2919
  • Swagger Generate Server Generates go Code With Cycles #2866
  • JSON Schema in swagger API response #2821
  • "swagger diff" does not work with spec that has a recursive definition #2774
  • request Content-Type isn't multipart/form-data #2773
  • fields named like "+1" cause swagger to fail gnerating a cli #2764
  • Flatten stopped processing nested directories in v0.26.0 #2743
  • Wrong import path generated for an operation called "client" #2730
  • New lines in description create incorrect markdown #2700
  • remove-unused does not remove all unused definitions #2657
  • "swagger generate cli" generates code that does not compile #2650
  • Generated code fails to call the Validate function on embedded structs resulting in incorrect validation #2604
  • Validation code for maxProperties is generated incorrectly #2587
  • Invalid code generated for parameters of array types with empty array as default value #2533
  • panic: assignment to entry in nil map #2527
  • Incompatible API with Helm Transitive Dependency #2525
  • Generate models failed after separate swagger files, maybe caused by a self-ref property of a definition in the separated swagger file #2346
  • "Invalid ref" error when generating server with cross-file reference when "--keep-spec-order" specified #2216
  • swagger generate client command fails with invalid token reference #1898
  • escaped parameters fail to generate the correct url path when a base path is present. #1083

Closed issues:

  • How to disable try it out option for the swagger-ui go-openapi/runtime/middleware #3102
  • Broken swagger:response Generation with Go 1.22.0 + 1.21.5 darwin/arm64 #3071
  • Install swagger server failed! #3067
  • Enum fields are not properly scanned (and documented) #3002
  • feat: provide SwaggerUI middleware to serve spec file #2988
  • Swagger generates broken code in $GOPATH #2982
  • wrong generated swagger.yml file when using flatten #2978
  • API client generation without requiring go-openapi modules #2976
  • API Client Generation - Strange naming of folder inside of client folder #2974
  • CVE-2022-4742 | CVSS Score: 9.8 | Category: CWE-1321 | A vulnerability, which was classified as critical, has been found in json-pointer. Affected by this issue is the function set of the file index.js. The manipulation leads to improperly controlled modification of object prototype attributes ('prototype pollution'). The attack may be launched remotely. The name of the patch is 859c9984b6c407fc2d5a0a7e47c7274daa681941. It is recommended to apply a patch to fix this issue. VDB-216794 is the identifier assigned to this vulnerability. #2971
  • Generated server.go has default write timeout value of 60s #2967
  • pprof is a tool for visualization and analysis of profiling data #2966
  • diff result has no URL, when there is an object type array field in the schema #2964
  • bug: incorrect logic and missing imports #2939
  • swagger generate markdown doesn't respect both '--output' and '--target' #2938
  • Add diff support for extensions #2935
  • is support for generic structures? #2920
  • When the response refers to a structure with the same name under a different package, only the structure of the latest structure will be generated #2918
  • [Bug] The parameters section can't be generate under go1.20 #2913
  • ContextValidate panics if the field is nil for discriminator types #2911
  • [Bug?] Swagger Flatten, Not Recognizing Nested Operations #2908
  • Object has no field "components", but it has (flattening error) #2903
  • Swagger docs validate failed when enums_as_ints=true #2890
  • Generation error against something that used to work ok (2 years ago :-) ) #2887
  • Docs not updated for 0.30.4 #2883
  • UUID regex more liberal than spec #2878
  • swagger flatten randomizes order in yaml output #2850
  • Custom server tutorials raise an error while swagger generates files #2833
  • Upload of large files permanently leaves files in TEMPDIR #2789
  • How to modify CSS / Color using Swagger V2? #2788
  • the context passed to ContextValidate is not the request context #2748
  • minimum misspelled #2740
  • Documentation missing for parameters section in swagger:route #2719
  • Substags not provided #2686
  • Installation instructions are not up-to-date #2664
  • Problem with generate server #2634
  • Using minItems not generating correct validation code #2597
  • Generated client code prints a pointer in Error() func #2590
  • Support for a "description" struct tag #2541
  • Get an error "invalid character '-' in numeric literal\n\nrequest body: " when using formData. #2491
  • Single Model has rogue type with no explanation #2254
  • Update README with a new section about OpenAPI 3.0 to avoid more questions #2192
  • [Go] Client Generated Code: Type is incorrect #1850

Merged pull requests:

  • ci: added retries on codecov coverage report upload #3108 (fredbi)
  • chore: Add missing favicon #3106 (truescotian)
  • chore: use errors.New to replace fmt.Errorf with no parameters #3105 (ChengenH)
  • chore(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 #3103 (dependabot[bot])
  • chore: fix some comments #3101 (careworry)
  • Adding support for s390x #3099 (dilipgb)
  • ci: try again to fix scorecard stuff #3097 (fredbi)
  • ci: fixed scorecard analysis issue (upgraded) #3096 (fredbi)
  • doc(readme): tidy up a shorter README #3095 (fredbi)
  • doc: removed doc deployment on PRs #3092 (fredbi)
  • Feat/docgen with hugo (#1) #3088 (fredbi)
  • doc(serve): fixed a few inacurracies in swagger serve documentation #3083 (fredbi)
  • fix(deps): fixed undue go.mod replace #3082 (fredbi)
  • chore(go): go-swagger and go-openapi require go.1.20 across the board #3081 (fredbi)
  • doc: sync'ed doc source with website #3079 (fredbi)
  • ci: reenacted codecov secret token #3078 (fredbi)
  • ci: fixed test coverage computation #3077 (fredbi)
  • chore(lint): relinted test #3076 (fredbi)
  • record adding and removing schema from response in swagger diff #3074 #3075 (zmay2030)
  • fix: fix memory pools & race issues in go-openapi/validate #3073 (fredbi)
  • golangci-lint: enable testifylint linter #3068 (mmorel-35)
  • ci: fixed up codecov project threshold config #3066 (fredbi)
  • ci: added tolerance threshold on codecov reports #3065 (fredbi)
  • perf(validate): upgrade go-openapi validate #3064 (fredbi)
  • perf(codegen): reduced allocated memory #3063 (fredbi)
  • fix(flatten): onboard fix for relative $ref in params&responses #3059 (fredbi)
  • Update docs: choosing a principal #3058 (ghost)
  • chore: updated dependencies for examples #3057 (fredbi)
  • Revert "ci: setup ossf scorecard and codql workflows" #3056 (casualjim)
  • chore(deps): bump docker/metadata-action from 4.6.0 to 5.5.0 #3051 (dependabot[bot])
  • chore(deps): bump actions/checkout from 3.1.0 to 4.1.1 #3050 (dependabot[bot])
  • ci: setup ossf scorecard and codql workflows #3049 (mmorel-35)
  • chore(ci): refactored ci workflows #3048 (fredbi)
  • fix(cli codegen): fixed missing imports #3046 (fredbi)
  • fix(cli): deconflicted names for variables and funcs #3045 (fredbi)
  • fix(markdown): handled multi-lines blocks in descriptions #3044 (fredbi)
  • fix(codegen): fixed operation package mangling when tag is v1 #3043 (fredbi)
  • feat(gen client): added support to work with multiple mimes #3042 (fredbi)
  • fix(codegen): fixed import conflict when tag is "client" #3040 (fredbi)
  • chore(go build): removed code that requires go < 1.19 to build #3038 (fredbi)
  • chore(test): reduced the verbosity of tests #3037 (fredbi)
  • doc: sync'ed markdown source with addition to HTML site #3036 (fredbi)
  • fix(validations): fixed missing validation in embedded structs #3034 (fredbi)
  • fix(validations): fixed MinProperties/MaxProperties #3033 (fredbi)
  • fix(strfmt): stricter UUID validation #3032 (fredbi)
  • feat(validation): added --rooted-error-path to generate models #3031 (fredbi)
  • fixed client generation test re sensitiveness to GOPATH #3030 (fredbi)
  • test(client): added dynamic test to assert path params #3029 (fredbi)
  • chore: checkpoint - regenerating examples #3028 (fredbi)
  • doc(example): fixed doc for custom-server example #3027 (fredbi)
  • fix: follow-up on #3019 - fixed templates #3026 (fredbi)
  • fix(flatten): flatten should remove unused models recursively #3025 (fredbi)
  • fix(mangling): fixes name mangling in the presence of a special character #3024 (fredbi)
  • feat(formats): added built-in support for ULID format #3023 (fredbi)
  • fix(faq): updating doc to get swagger UI #3022 (souradeepmajumdar05)
  • fix(codegen): fixed panic on invalid parameters in spec #3021 (fredbi)
  • fix(flatten): fixed code generation with circular $ref AND expand option #3020 (fredbi)
  • fix(client): alleviates issues with pointers in error reporting #3019 (fredbi)
  • chore(ci): linter & ci configuration #3018 (fredbi)
  • Use mockery V2 argument style #3017 (fredbi)
  • fix(codegen): invalid token reference when referencing an extension #3016 (fredbi)
  • fix(flatten): fixed panic in marshal YAML #3015 (fredbi)
  • fix(flatten): added option to flatten without transforming names #3014 (fredbi)
  • fix(diff): fixed diff status on added required property #3011 (fredbi)
  • Bump golang.org/x/crypto from 0.14.0 to 0.17.0 #3010 (dependabot[bot])
  • fix(markdown): added support for --target flag #3009 (fredbi)
  • Bump golang.org/x/net from 0.10.0 to 0.17.0 #3008 (dependabot[bot])
  • fix(yaml): fixed panic when MarshalYAML returns an error #3006 (fredbi)
  • 3002 enum parse #3004 (dimovnike)
  • Add missing line from custom server example code #3001 (kevinbarbour)
  • enable misspell linter and fix linters #2992 (mmorel-35)
  • use Go standard errors #2990 (mmorel-35)
  • fix: 1) adds supports for Diff to report on changed extension values … #2986 (zmay2030)
  • fix typo in zsh completion #2981 (mehmetumit)
  • Feat: new client constructors wo go-openapi #2979 (LukasDeco)
  • Updated to handle cases where 'body' is not present in the YAML file … #2973 (Shimizu1111)
  • Fix default write timeout value from 60s to 30s in Server struct #2968 (aiwasaki126)
  • fix: diff result has no URL, when there is an object type array field… #2965 (EarthSoar)
  • Add support for x-go-custom-tag in generated parameter #2957 (MAAF72)
  • Support type alias when generating spec #2953 (invzhi)
  • Fix typo in codescan/spec.go #2950 (ryomak)
  • Update README.md with projects using go-swagger #2940 (tejash-jl)
  • Fixes #2740 - Minimum misspelled #2787 (afagundes)
  • Add details on how to install using go install #2772 (vidhill)
  • Fix #2764 Allow number as field in cli generation #2766 (youyuanwu)

* This Changelog was automatically generated by github_changelog_generator

v0.30.5

11 months ago

Changelog

v0.30.5 (2023-06-10)

Full Changelog

Implemented enhancements:

  • feat: swagger mixin -c all #2297
  • Server hangs given a panic in configure_ #1655

Closed issues:

  • Default client error lacks context which is the failing operation #2945
  • Coverity issue shows up after using pattern keyword for string data type #2941
  • go-swagger install error #2934
  • [Proposal] Introducing new compatibility level "Warning" for changes which are technically non-breaking but can cause unforeseen behavior change for client #2932
  • Diff tool does not find differences in form params #2929
  • Problem generate definitions of models #2910
  • Version v0.30.4 generates incomplete spec #2904
  • Response schema is not generated #2902
  • Swagger parser ignores response entries when there's an extension #2901
  • DIFF command panics when definition property type changes from an array to a non-array type #2894
  • Generated client not compiled when x-go-name is specified #2892

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

v0.30.4

1 year ago

v0.30.3

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/go-swagger/go-swagger/compare/v0.30.2...v0.30.3

v0.30.2

1 year ago

v0.30.0

1 year ago

Changelog

v0.30.0 (2022-08-26)

Full Changelog

Implemented enhancements:

  • Support for extensions within swagger:route #1957
  • How to get enums to show up in a swagger specification? #954

Closed issues:

  • any type (generics) #2809
  • Question: how to make snakize to ignore some abbreviation? #2794
  • Work around for name collisions? #2792
  • Specify the same parameter more than one time #2786
  • unhandled type to resolve JSON pointer #2768
  • Go 1.19 change breaks swagger #2759
  • [CLI] Generating an empty object using swagger:type object does not work as expected. #2758
  • generate: Ref property in response doesn't have a description #2757
  • swagger generate client returns info.title in body is required #2739
  • Add trimPrefix and trimSuffix to template FuncMap #2737
  • Generated CLI does not compile when using arrays as query parameters #2735
  • How can I import from a yaml file #2729
  • Middleware not stopping request execution #2723
  • @Failure, @Success Response Type Usage Error #2722
  • Need to fix the options of todo-list-server in todo-list example #2716
  • Call for transparent HTTP status codes in generated struct #2706
  • strfmt.ObjectId is scanned back as an array of strings #2704
  • Cannot convert an expression of the type 'map[string]SomeType' to the type 'SomeType' #2682
  • Installing go-swagger as Debian packages fails #2558
  • swagger:type override is not working #2229
  • Generating code for go modules is much slower than under GOPATH #1826

Merged pull requests:

* This Changelog was automatically generated by github_changelog_generator

v0.29.0

2 years ago

Changelog

v0.29.0 (2022-01-23)

Full Changelog

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:

* This Changelog was automatically generated by github_changelog_generator

v0.28.0

2 years ago

Changelog

v0.28.0 (2021-10-09)

Full Changelog

Fixed bugs:

  • strfmt.bsonobjectid validation fails #2616
  • Creating models crash when using $ref on an array #2511

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:

* This Changelog was automatically generated by github_changelog_generator

v0.27.0

3 years ago

Changelog

v0.27.0 (2021-03-31)

Full Changelog

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:

* This Changelog was automatically generated by github_changelog_generator

v0.26.1

3 years ago

Changelog

v0.26.1 (2021-02-05)

Full Changelog

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:

* This Changelog was automatically generated by github_changelog_generator