New Functionality
Support has been added for a new router, Fiber
- Feat: Add Fiber server support by @Jleagle in https://github.com/deepmap/oapi-codegen/pull/813
Notable Changes
These changes may affect your code, and possibly some incompatibilities where boilerplate had to be changed to fix issues.
- Gin's Cookie() returns string, not *http.Cookie by @derfenix in https://github.com/deepmap/oapi-codegen/pull/878
- Use gin.IRouter instead of *gin.Engine by @derfenix in https://github.com/deepmap/oapi-codegen/pull/879
- fix generated client code cannot convert UUIDs to string when used as… by @benyaminbeyzaie in https://github.com/deepmap/oapi-codegen/pull/956
- Add form struct tag for x-www-form-urlencoded request schemas by @ivan1993spb in https://github.com/deepmap/oapi-codegen/pull/1000
- Add initialism-overrides flag by @shiv3 in https://github.com/deepmap/oapi-codegen/pull/1007
- Reusable strict middlewares by @Warboss-rus in https://github.com/deepmap/oapi-codegen/pull/1021
- Support for hal+json format by @martinhej in https://github.com/deepmap/oapi-codegen/pull/1030
- fix: Avoid nil reference for gin wrapper by @amweiss in https://github.com/deepmap/oapi-codegen/pull/1057
- Introduce content type into generated JSON types by @jamietanna in https://github.com/deepmap/oapi-codegen/pull/1078
The Rest
- Bump golang.org/x/tools from 0.3.0 to 0.4.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/893
- Bump github.com/go-chi/chi/v5 from 5.0.7 to 5.0.8 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/894
- relax validation of discriminators when merging allOf schemas. by @cosnicolaou in https://github.com/deepmap/oapi-codegen/pull/895
- x-enum-varnames revival by @amery in https://github.com/deepmap/oapi-codegen/pull/880
- Bump github.com/matryer/moq from 0.2.7 to 0.3.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/875
- Warn when using a non-empty
spec.Serversby @jamietanna in https://github.com/deepmap/oapi-codegen/pull/883 - This PR addresses issue 896. by @cosnicolaou in https://github.com/deepmap/oapi-codegen/pull/897
- fix(oapi-codegen): package name detection by @stevenh in https://github.com/deepmap/oapi-codegen/pull/873
- AdditionalProperties and oneOf in one Schema by @B-Lorentz in https://github.com/deepmap/oapi-codegen/pull/765
- Reverse the order of the middleware when they applied in gorilla/mux implementation by @mpls104 in https://github.com/deepmap/oapi-codegen/pull/842
- Bump golang.org/x/text from 0.5.0 to 0.6.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/921
- Bump github.com/getkin/kin-openapi from 0.107.0 to 0.112.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/907
- fix(gin-template): Respect ctx.Abort() by @alexstojda in https://github.com/deepmap/oapi-codegen/pull/914
- Bump github.com/labstack/echo/v4 from 4.9.1 to 4.10.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/912
- Bump github.com/gin-gonic/gin from 1.8.1 to 1.8.2 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/908
- Bump golang.org/x/tools from 0.4.0 to 0.5.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/920
- change error message when failed parsing date-time in deepObject by @ikorihn in https://github.com/deepmap/oapi-codegen/pull/919
- fix(deps): update kin-openapi to v0.104.0 by @mgabeler-lee-6rs in https://github.com/deepmap/oapi-codegen/pull/953
- Bump golang.org/x/tools from 0.5.0 to 0.6.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/964
- Bump golang.org/x/net from 0.5.0 to 0.7.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/973
- Bump github.com/labstack/echo/v4 from 4.10.0 to 4.10.2 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/980
- Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/981
- Bump golang.org/x/text from 0.6.0 to 0.8.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/989
- Bump github.com/gin-gonic/gin from 1.8.2 to 1.9.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1001
- OneOf: Implicit mapping by @Antonboom in https://github.com/deepmap/oapi-codegen/pull/932
- Bump golang.org/x/tools from 0.6.0 to 0.7.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1002
- Bump github.com/matryer/moq from 0.3.0 to 0.3.1 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1003
- Fix incorrect fieldname reserved keywords in path parameters (strict server) by @reinkrul in https://github.com/deepmap/oapi-codegen/pull/999
- Client With Responses not able to solve external refs by @amammay in https://github.com/deepmap/oapi-codegen/pull/959
- Fix incorrectly generated empty array for security requirements by @benyaminbeyzaie in https://github.com/deepmap/oapi-codegen/pull/955
- Fix README.md example usage by @hjblom in https://github.com/deepmap/oapi-codegen/pull/982
- Add proper Godoc comment for properties marked as deprecated by @papkos in https://github.com/deepmap/oapi-codegen/pull/976
- Use different order of arguments for json merge by @hhelmken in https://github.com/deepmap/oapi-codegen/pull/998
- Fix allOf merges using external refs by @octomad in https://github.com/deepmap/oapi-codegen/pull/941
- fix(oapi-codegen): command line parsing compatibility by @stevenh in https://github.com/deepmap/oapi-codegen/pull/852
- fix959 by @Rmarken5 in https://github.com/deepmap/oapi-codegen/pull/992
- Bump github.com/getkin/kin-openapi from 0.114.0 to 0.115.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1008
- Bump golang.org/x/text from 0.8.0 to 0.9.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1023
- Improve logic for x-omitempty by @veleek in https://github.com/deepmap/oapi-codegen/pull/1033
- Bump golang.org/x/tools from 0.7.0 to 0.8.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1024
- Bump github.com/getkin/kin-openapi from 0.115.0 to 0.116.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1032
- Fix pointers equality in TypeDefinitionsEquivalent function by @spinillos in https://github.com/deepmap/oapi-codegen/pull/952
- Add InternalServerError when err is not nil in strict-gin by @shirou in https://github.com/deepmap/oapi-codegen/pull/1012
- fix: Use helper function to detect general JSON responses by @hikhvar in https://github.com/deepmap/oapi-codegen/pull/945
- Update authenticated example - set token in echo context.. by @sblackstone in https://github.com/deepmap/oapi-codegen/pull/917
- Fix AdditionalPropertiesType Propagation by @FragmentedPacket in https://github.com/deepmap/oapi-codegen/pull/1017
- Assign values of type Map in deep objects by @goblindegook in https://github.com/deepmap/oapi-codegen/pull/934
- chore: move install mapping to global state by @stevenh in https://github.com/deepmap/oapi-codegen/pull/853
- Handle empty application/json request bodies by @kurtinge in https://github.com/deepmap/oapi-codegen/pull/1043
- fixes an error message containing a nil err object by @mwasilew2 in https://github.com/deepmap/oapi-codegen/pull/1048
- Add ability to try to get templates from files or remotes by @deefdragon in https://github.com/deepmap/oapi-codegen/pull/968
- Cmd flags usage: uppercase first letter, and end with a period by @alexandear in https://github.com/deepmap/oapi-codegen/pull/1073
- add links to source in the README.md file by @BigBoulard in https://github.com/deepmap/oapi-codegen/pull/1071
- Bump github.com/getkin/kin-openapi from 0.116.0 to 0.117.0 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1054
- Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1053
- Bump golang.org/x/tools from 0.8.0 to 0.9.1 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1049
- Fix typos in comments by @alexandear in https://github.com/deepmap/oapi-codegen/pull/1050
- checking query params for nil value by @yuoppp in https://github.com/deepmap/oapi-codegen/pull/1064
- Bump golang.org/x/tools from 0.9.1 to 0.9.2 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1076
- Bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1 by @dependabot in https://github.com/deepmap/oapi-codegen/pull/1077
- Refactor to use strings.ReplaceAll by @alexandear in https://github.com/deepmap/oapi-codegen/pull/1079
New Contributors
- @cosnicolaou made their first contribution in https://github.com/deepmap/oapi-codegen/pull/895
- @amery made their first contribution in https://github.com/deepmap/oapi-codegen/pull/880
- @B-Lorentz made their first contribution in https://github.com/deepmap/oapi-codegen/pull/765
- @mpls104 made their first contribution in https://github.com/deepmap/oapi-codegen/pull/842
- @alexstojda made their first contribution in https://github.com/deepmap/oapi-codegen/pull/914
- @ikorihn made their first contribution in https://github.com/deepmap/oapi-codegen/pull/919
- @Antonboom made their first contribution in https://github.com/deepmap/oapi-codegen/pull/932
- @reinkrul made their first contribution in https://github.com/deepmap/oapi-codegen/pull/999
- @amammay made their first contribution in https://github.com/deepmap/oapi-codegen/pull/959
- @benyaminbeyzaie made their first contribution in https://github.com/deepmap/oapi-codegen/pull/956
- @hjblom made their first contribution in https://github.com/deepmap/oapi-codegen/pull/982
- @papkos made their first contribution in https://github.com/deepmap/oapi-codegen/pull/976
- @ivan1993spb made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1000
- @hhelmken made their first contribution in https://github.com/deepmap/oapi-codegen/pull/998
- @octomad made their first contribution in https://github.com/deepmap/oapi-codegen/pull/941
- @Rmarken5 made their first contribution in https://github.com/deepmap/oapi-codegen/pull/992
- @shiv3 made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1007
- @martinhej made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1030
- @spinillos made their first contribution in https://github.com/deepmap/oapi-codegen/pull/952
- @shirou made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1012
- @hikhvar made their first contribution in https://github.com/deepmap/oapi-codegen/pull/945
- @sblackstone made their first contribution in https://github.com/deepmap/oapi-codegen/pull/917
- @FragmentedPacket made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1017
- @goblindegook made their first contribution in https://github.com/deepmap/oapi-codegen/pull/934
- @kurtinge made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1043
- @mwasilew2 made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1048
- @deefdragon made their first contribution in https://github.com/deepmap/oapi-codegen/pull/968
- @alexandear made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1073
- @BigBoulard made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1071
- @amweiss made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1057
- @yuoppp made their first contribution in https://github.com/deepmap/oapi-codegen/pull/1064
Full Changelog: https://github.com/deepmap/oapi-codegen/compare/v1.12.4...v1.13.0