Skip to content

v0.31.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 13 May 18:32

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