v2.2.0
Changelog
- ecac5e4 Merge branch 'goreleaser' into release/v2.2.0
- 8dc279b chore: bump actions
- 8f43d03 Merge branch 'goreleaser' into release/v2.2.0
- b660585 docs: add Sponsors section
- de6b8be fix(deps): update module golang.org/x/tools to v0.21.0
- eba91d9 docs: improve error message
- 620da6b fix(deps): update module github.com/getkin/kin-openapi to v0.124.0
- cb61b77 chore: add missing test case for replaceInitialism (oapi-codegen#1624)
- 0e91fbb chore: remove deprecated usage for
golangci-lint - 3f33e92 chore(deps): update module github.com/golangci/golangci-lint to v1.59.0
- 293ee3b docs(examples): add a non-echo example for authenticated APIs
- da9077b chore(deps): update module github.com/golangci/golangci-lint to v1.58.2
- 311b23b fix(extensions): generate all sub-types that define
x-go-type-names (oapi-codegen#1397) - bf8962d Simplify extensions merge in
mergeOpenapiSchemas(oapi-codegen#1424) - c8ba965 docs(extensions): add missing
x-go-type-namedocs - 26f8257 fix: correctly register Fiber middleware
- 1eb9b9e Use generics to remove redundancy
- 070cd93 chore(deps): update module github.com/golangci/golangci-lint to v1.58.1
- a8119c1 fix(deps): update module golang.org/x/text to v0.15.0
- 76f2b89 chore: log warning when using 3.1.x
- 5f32277 docs: note the usage of a non-default branch for PRs
- af43038 feat: add ability to tweak generated names (including use of initialisms)
- fd4a0ef docs: remove erroneous tabs
- c3f671b Refactor: simplify map access for extensions
- acc4e4d chore(deps): remove dependency on
golang.org/x/lint - e2c5574 chore(deps): update module github.com/golangci/golangci-lint to v1.58.0
- c786892 fix: ensure we pre-import
nullable - 621b446 docs: link to blog post for syncing vendored specs
- 508f5c5 README updated (oapi-codegen#1576)
- 472f1ca docs: correctly continue "Note" box
- 562cf2e fixup! fix(deps): update module golang.org/x/tools to v0.20.0
- 50968ca fix(deps): update module golang.org/x/tools to v0.20.0
- 50a552a docs: completely rewrite the README
- 116a63d docs(examples): add a very minimal example
- 27cfc4b docs(examples): add example of
anyOf,allOfandoneOf - 71e5ff3 chore: apply JSON schema to configuration
- 5473d78 feat: add JSON schema for configuration files
- 686f006 docs: add
AdditionalImportsdocs - b95aa7c docs: remove unfinished sentence
- dcb6310 docs: correctly use GoDoc for
Configurationtypes - 3ea62b4 docs: add a contributing guide
- b655685 docs(examples): add
x-orderextension example - 62d7e92 docs(examples): add
x-deprecated-reasonextension example - ab4441c docs(examples): add
x-enum-varnamesextension example - 523b9c9 docs(examples): add
x-oapi-codegen-extra-tagsextension example - 7a47de4 docs(examples): add
x-omitemptyextension example - 76fa860 docs(examples): add
x-go-json-ignoreextension example - 7376c36 docs(examples): add
x-go-nameextension example - 4e92926 docs(examples): add
x-go-type-skip-optional-pointerextension example - b2bd4c0 docs(examples): add
x-go-typeextension example - 2b3492a docs(examples): add example for
import-mapping - 1db0efc docs(examples): add
generate: clientexample - cc904bd docs(examples): add
generate: modelsexample - 2780786 chore: use a constant for
x-order - 80f0b97 fix(deps): update module golang.org/x/tools to v0.19.0
- 6734bf9 fix(deps): update module github.com/getkin/kin-openapi to v0.123.0
- 235bc17 chore(deps): update module github.com/golangci/golangci-lint to v1.57.2
- c07bcdd Update module github.com/stretchr/testify to v1.9.0
- eee90a2 Update actions/checkout action to v4
- 44d0946 chore(deps): update actions/setup-go action to v5
- 71e916c chore: add test case for
additionalPropertiesbug - a14414f docs(readme): point to new HEAD branch for OpenAPI specs (oapi-codegen#1493)
- 1232a7a docs: add Fiber example in README (oapi-codegen#1495)
- dd08298 feat: add support for Go 1.22+ net/http routing
- 74e9346 build: explicitly set
GOTOOLCHAIN - 2b52a39 build: Add
tidy-cimake target - a27ffa3 build: create a
Makefileper module - 8421208 build: remove unnecessary output
- 47f5ab6 build: add
make linttomake help - aeef3c5 build: remove invalid
maketarget - 5cad5b8 docs: correct reference
- bd23fe9 docs: remove accidental
</summary>s - 1286ef4 fix: correctly validate presence of Gorilla and other servers
- 02b250f chore: add missing test coverage for
TestSwaggerUriToChiUri - 3ea8ca7 docs: use relative links to files (oapi-codegen#1471)
- 1da4d42 Update release-drafter/release-drafter action to v6 (oapi-codegen#1453)
- 5e6f181 Update module github.com/golangci/golangci-lint to v1.56.1 (oapi-codegen#1455)
- 327e62e Fix: Render Go Doc correctly with
x-go-name(oapi-codegen#1457) - a54cea8 chore: build against Go 1.22
- a4d71ec chore: simplify CI build matrix
- ad5eada Fix: Ensure external refs are propagated to generated code
- 3bf5755 Add support for x-order extension (oapi-codegen#1190)
- 5cdb559 Allow disabling type aliases for arrays
- e5f477d Fixes confusing indentation for example code in README.md (oapi-codegen#1414)
- eb0c4cd Fix typos in test fields and comments (oapi-codegen#1287)
- d1b4504 feat: filter by operation ids (oapi-codegen#929)
- 390058d Fix: Don't use type aliases with external references
- b5a3855 Add a
Schema#IsExternalReffunction - f0a1be0 Fix: Refer to external refs correctly in strict interfaces
- d326c01 refactor(cmd): Use os.Exit(1) only from main()
- ee101e4 Document how to use
import-mappingwith URLs - 66f9bb8 Allow generating
nullable.Nullablefor nullable properties - 887a24f Add test coverage for existing
GoTypeDefmethod (oapi-codegen#1423) - 4ceb1d5 Update module github.com/golangci/golangci-lint to v1.55.2
- c2de8bf Use non-deprecated function names for oapi-codegen/runtime
- 839a661 Fix: Bind JSON bodies correctly with Gin (oapi-codegen#1299)
- 0c61fb3 Support media type parameters for
IsMediaTypeJson - 039ba0e Fix: Handle strict server handling for all multipart media types (oapi-codegen#1385)
- 1f53862 feat: bump kin-openapi to v0.122.0
- 6aa5167 feat: bump kin-openapi to v0.121.0
- 4ed71d3 feat: bump kin-openapi to v0.119.0
- add3126 Update module golang.org/x/text to v0.14.0 (oapi-codegen#1349)
- 7e5100e Fix typo in README.md (oapi-codegen#1351)
- a64d36d Ensure that
BindStyledParameterhandles required parameters correctly (oapi-codegen#1315) - 93fa27b Onboard to Release Drafter
- ba76f6c Bump module import path to v2
- bccdafd Remove deprecated packages
- 9ee8f5a Replace test reference to
pkg/runtime - 5d2cd60 Add missing types to deprecation URLs
- 81b4e34 Add pkg.go.dev links to deprecation warnings
- eb5e119 Fix: Ensure deprecations are parsed correctly
- d663b6c Add deprecation notice for
testutil - 6d98312 Migrate to separate
testutilpackage - 82cbf4a Replace Echo-specific handler call
- 46d2694 Onboard to Renovate
- 58e3d16 Deprecate existing middleware
- 2d349f4 Migrate middleware to their own Go modules
- af55078 Bump Iris to remove Go 1.21 dependency
- 6241f8b Build project with Go 1.20 and Go 1.21
- 7533456 Bump fiber to v2.49.1
- 3094d0b Remove dependency on moq
- 8e64637 Re-enable moq running in builds
- 5b69bf0 Move
moqdependency closer to use - 01ee8d4 fixup! [Gorilla] update the MiddlewareFunc type for compatibility (oapi-codegen#1134)
- ff644d1 [Gorilla] update the MiddlewareFunc type for compatibility (oapi-codegen#1134)
- 3cb7501 Remove unused TravisCI configuration
- beb29bb Allow overriding the binary version when VCS not available (oapi-codegen#1163)
- aaa0b59 Set 30s retrieve timeout for remote templates (oapi-codegen#1170)
- a5f91c8 Use
httptestto simplify test case - 9aa9d5c Allow merging of schemas with additionalProperties (oapi-codegen#1220)
- 79a38c4 Correctly handle multiple JSON-compatible types (oapi-codegen#1210)
- 97f301d Allow strict server to refer to external multipart definitions (oapi-codegen#1185)
- a839952 Correctly generate types when an enum is used in an
anyOf(oapi-codegen#1207) - 90af95b Allow strict server to refer to external response definitions (oapi-codegen#1185)
- f00baf4 Show full diff when
make generateis out-of-sync - 53d2478 fixup! Override local parameters to global parameters (oapi-codegen#1181)
- 6b70060 Recommend
make generatecommand - 1b75d8e Override local parameters to global parameters (oapi-codegen#1181)
- 5d1ccea Deprecate
pkg/runtimeandpkg/types - 04c680a Migrate to oapi-codegen/runtime package
- 043c969 Migrate internal/test to its own multi-module
- e0e7a72 Migrate examples to their own multi-module
- 30bb667 Make
makemulti-module aware - a5361e0 Remove unnecessary
echodependency inpkg/codegen - 0df8d0b Lint: Address existing linting findings
- 0f5efdf Migrate generated code tests out of
pkg - 085f793 Allow skipping network-interacting test
- 67df140 Migrate SecurityProvider tests closer to the internal client
- 55641e9 Bump github.com/gofiber/fiber/v2 from 2.48.0 to 2.49.0
- 0afcfee Bump github.com/google/uuid from 1.3.0 to 1.3.1
- 65e1cee Add Iris Server Support (oapi-codegen#1088)
- 3db6548 Add Gorilla test case for strict-server
- 3650493 Remove capitalised error strings
- 0d5b96c support staticcheck st1005
- a80e681 Allow setting spec without Generate
- e1a7b4c Fix: Allow consumers to specify how many circular references are allowed
- bd9ff2a Increase timeout for golangci-lint in CI
- 7447b7f Use Makefile for linting
- 00f2789 Bump golang.org/x/tools from 0.11.1 to 0.12.0
- 4887803 Use upstream
lintpackage (oapi-codegen#1191) - f7fe789 Bump targeted Go version to 1.20
- d3269a4 Move
goversion ingo.mod - d121c7a Bump golangci-lint to v1.54.0
- d26d251 Bump golang.org/x/text from 0.11.0 to 0.12.0
- e90f06d Fix: Generate models for all JSON media types
- f20166f fix: correct marshalling for alternative JSON types (+json) for strict servers (oapi-codegen#1171)
- fb652f7 Update all dependencies
- 4b0df49 Bump github.com/go-chi/chi/v5 from 5.0.8 to 5.0.10 (oapi-codegen#1162)
- 57f80a6 Bump github.com/labstack/echo/v4 from 4.10.2 to 4.11.1 (oapi-codegen#1161)
- 6fba975 Bump github.com/matryer/moq from 0.3.1 to 0.3.2 (oapi-codegen#1160)
- b248b1d Fix: Allow multiple JSON types to be generated (oapi-codegen#1159)
- d9db08d fix warn log condition
- 98fb35a Lint: Perform nil check earlier
- 07c2ba6 Remove unused import
- 97ec5d5 Fix: Correct
go:generatecommand - 60913e6 Fix readme formatting issue
- 5be00c4 Add a Contributing section to the README
- c94e8b0 Regenerate boilerplate
- 8210fe4 fix(stricttpl): move custom header interpolation after set content-type (oapi-codegen#1133)
- df2cf43 fix(template): fix strict-interface template to make sure text response content type uses string type (oapi-codegen#1132)
- 426f7ad Regenerate boilerplate
- 9174fec Change generated code to start function comment with the function name (oapi-codegen#1128)
- 1892f8f Pass request context (oapi-codegen#1125)
- 3c2c347 fix(validation): skip email validation when the types.Email is nullable and the email isn't provided (oapi-codegen#1107)
- 8fc824d Refactor to net.JoinHostPort instead of fmt.Sprintf (oapi-codegen#1104)
- 8e4a4fe feat: implement skipping pointer type (oapi-codegen#1102)
- 8c1ece6 Simplify variable declarations (oapi-codegen#1099)
- 245e285 Simplify assign operations: use += and ++ (oapi-codegen#1103)
- 93a62ce issue-1087 (oapi-codegen#1089)
- bc2b028 return 404 when no matching route is found (oapi-codegen#1067)
- 25f0abc Use only "marshal/unmarshal" with single "l" (oapi-codegen#1086)
- 25c2f43 Revert "fix oapi-codegen#1147 (oapi-codegen#1148)"
- e393d91 fix oapi-codegen#1147 (oapi-codegen#1148)
- 0ac6241 Chi: generate Unimplemented implementation (oapi-codegen#1090)
- 5a575d0 Change function comments to start with a name (oapi-codegen#1080)
- 51885b4 Bump github.com/gofiber/fiber/v2 from 2.46.0 to 2.48.0 (oapi-codegen#1150)
- 1af540a Bump golang.org/x/text from 0.9.0 to 0.11.0 (oapi-codegen#1141)
- 132def8 Bump golang.org/x/tools from 0.9.3 to 0.11.0 (oapi-codegen#1140)
- 9494ad8 Use octal literal style for file permissions (oapi-codegen#1097)
- ed70e61 Use native error wrapping (oapi-codegen#1098)
- 559b2df Bump github.com/lestrrat-go/jwx from 1.2.25 to 1.2.26 (oapi-codegen#1111)
- cbf304f Bump github.com/getkin/kin-openapi from 0.117.0 to 0.118.0 (oapi-codegen#1105)
- 9cc142a Regenerate generated code
- 6b417d9 Fix: nil spec.Component panic on import mapping (oapi-codegen#1093) (oapi-codegen#1116)
- ad62d73 Fix: Only generate optional parameters if present
- f5363b0 fix: strict server with union type (oapi-codegen#939)
- 5e1ca80 Use only "marshal/unmarshal" with single "l" (oapi-codegen#1069)
- 31be086 Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (oapi-codegen#1085)
- 0299133 Bump golang.org/x/tools from 0.9.2 to 0.9.3 (oapi-codegen#1084)
- d79b2a2 feat: support nullable additional properties (oapi-codegen#948)
- 7aa85bb Feat: Add Fiber server support (oapi-codegen#813)
- 22f5b9a Refactor to use
strings.ReplaceAll(oapi-codegen#1079) - 5dfa9e6 Introduce content type into generated JSON types (oapi-codegen#1078)
- 5796f3e Merge pull request oapi-codegen#1077 from deepmap/dependabot/go_modules/github.com/gin-gonic/gin-1.9.1
- 228a383 Bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1
- d8fc492 Bump golang.org/x/tools from 0.9.1 to 0.9.2 (oapi-codegen#1076)
- 5ba8e44 Regenerate boilerplate
- 87dda37 checking query params for nil value (oapi-codegen#1064)
- f442b7b fix: Avoid nil reference for gin wrapper (oapi-codegen#1057)
- f0f7579 Fix typos in comments (oapi-codegen#1050)
- 704ee44 Bump golang.org/x/tools from 0.8.0 to 0.9.1 (oapi-codegen#1049)
- a251988 Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (oapi-codegen#1053)
- 9d9d659 Bump github.com/getkin/kin-openapi from 0.116.0 to 0.117.0 (oapi-codegen#1054)
- 5058196 add links to source in the README.md file (oapi-codegen#1071)
- bacc537 Merge pull request oapi-codegen#1073 from alexandear/oapi-codegen-cmd-help
- 39d6361 Cmd help: uppercase first letter, and end with a period
- 14548c7 Add ability to try to get templates from files or remotes (oapi-codegen#968)
- bf56ed2 fixes an error message containing a nil err object (oapi-codegen#1048)
- c1a42f7 Handle empty application/json request bodies (oapi-codegen#1043)
- 7ffda6d Allow elevating anonymous types into named types
- 29ebe32 chore: move install mapping to global state (oapi-codegen#853)
- 47bc5ec Revert "Updated code to find AdditionalTypes under AdditionalPropertiesType key as well. (oapi-codegen#1017)"
- 6a37afe Assign values of type Map in deep objects (oapi-codegen#934)
- 71bd050 Updated code to find AdditionalTypes under AdditionalPropertiesType key as well. (oapi-codegen#1017)
- c03f4a0 Revert "Merge branch 'johanneswuerbach-fix-union'"
- 74f8084 Merge branch 'johanneswuerbach-fix-union'
- 259a918 Fix incorrect fieldname reserved keywords in path parameters (oapi-codegen#999)
- a37e91d fix: strict server with union type
- 8b1c1e2 Update authenticated example - set token in echo context.. (oapi-codegen#917)
- 8fbbe02 fix: Use helper function to detect general JSON responses (oapi-codegen#945)
- e9033d1 Add InternalServerError when err is not nil on strict-gin (oapi-codegen#1012)
- d62f860 Fix pointers equality in TypeDefinitionsEquivalent function (oapi-codegen#952)
- fcb892d Support for hal+json format (oapi-codegen#1030)
- c94277e Bump github.com/getkin/kin-openapi from 0.115.0 to 0.116.0 (oapi-codegen#1032)
- 75dfda3 Bump golang.org/x/tools from 0.7.0 to 0.8.0 (oapi-codegen#1024)
- 78c53fd Add initialism-overrides flag (oapi-codegen#1007)
- 844e5db Extract strict middleware definition into a separate file in runtime package to allow middlewares to be reused (oapi-codegen#1021)
- bb1cfe9 Improve logic for x-omitempty (oapi-codegen#1033)
- b09bf82 Bump golang.org/x/text from 0.8.0 to 0.9.0 (oapi-codegen#1023)
- fd06f5a Bump github.com/getkin/kin-openapi from 0.114.0 to 0.115.0 (oapi-codegen#1008)
- 0cfaaa7 Fix missing import and regenerate code
- 4886258 Revert "issue958 (oapi-codegen#959)"
- 6d85384 Revert "fix959 (oapi-codegen#992)"
- b42721b fix959 (oapi-codegen#992)
- 189619a fix(oapi-codegen): command line parsing compatibility (oapi-codegen#852)
- 497e000 Fix allOf merges using external refs (oapi-codegen#941)
- adf8a06 Use different order of arguments for json merge (oapi-codegen#998)
- f921602 Add form struct tag for x-www-form-urlencoded request schemas (oapi-codegen#1000)
- afac8ae Add proper Godoc comment for properties marked as deprecated (oapi-codegen#976)
- 22d1cf4 Fix README.md example usage (oapi-codegen#982)
- 619de16 Fix incorrectly generated empty array for security requirements (oapi-codegen#955)
- 1e2beac fix generated client code cannot convert UUIDs to string when used as path parameters. (oapi-codegen#956)
- ffe428b issue958 (oapi-codegen#959)
- 0d7287e Fix incorrect fieldname reserved keywords in path parameters (oapi-codegen#999)
- f0729a4 Bump github.com/matryer/moq from 0.3.0 to 0.3.1 (oapi-codegen#1003)
- 357b712 Bump golang.org/x/tools from 0.6.0 to 0.7.0 (oapi-codegen#1002)
- 7fd8f39 OneOf: Implicit mapping (oapi-codegen#932)
- f965b62 Bump github.com/gin-gonic/gin from 1.8.2 to 1.9.0 (oapi-codegen#1001)
- 3a8047e Bump golang.org/x/text from 0.6.0 to 0.8.0 (oapi-codegen#989)
- 3dff1e9 Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (oapi-codegen#981)
- a5a9b6c Bump github.com/labstack/echo/v4 from 4.10.0 to 4.10.2 (oapi-codegen#980)
- 6bcd56c Bump golang.org/x/net from 0.5.0 to 0.7.0 (oapi-codegen#973)
- 2d839e1 Bump golang.org/x/tools from 0.5.0 to 0.6.0 (oapi-codegen#964)
- 2b52cd5 fix(deps): update kin-openapi to v0.104.0 (oapi-codegen#953)