Releases: danielgtaylor/huma
v2.0.0
This is a major new release with a completely rewritten interface using Go generics. Please see https://huma.rocks/ for documentation!
What's Changed
- docs: new mkdocs based documentation site by @danielgtaylor in #166
- fix: mkdocs deploy path by @danielgtaylor in #167
- fix: trigger docs workflow on edits by @danielgtaylor in #168
- docs: fix a few links by @danielgtaylor in #169
- docs: add social plugin & descriptions, various small fixes by @danielgtaylor in #170
- docs: switch to huma.rocks docs by @danielgtaylor in #171
- docs: make CNAME permanent [ci skip] by @danielgtaylor in #172
- chore: add linter & rules config by @danielgtaylor in #173
- test: add body and nested defaults test by @danielgtaylor in #174
- docs: remove logos [ci skip] by @danielgtaylor in #175
- fix: support custom errors with private fields; docs updates by @danielgtaylor in #176
- fix: use 415 status for bad input content type by @danielgtaylor in #177
- fix: enable validation for map[any]any used by some formats by @danielgtaylor in #178
Full Changelog: v2.0.0-rc.1...v2.0.0
v2.0.0-rc.1
What's Changed
- docs: fix content type typo [ci skip] by @danielgtaylor in #153
- feat: simplify humatest, allow sending body slice/map/struct, docs by @danielgtaylor in #155
- feat: split transform/marshal, reorg tests & dogfood humatest by @danielgtaylor in #156
- fix: autopatch fixes, add tests by @danielgtaylor in #157
- docs: lots of docs updates, a few more tests/examples by @danielgtaylor in #158
- feat: operation metadata and autopatch disable by @danielgtaylor in #159
- feat: add Server Sent Events example by @danielgtaylor in #160
- fix: better paths for resolvers, prevent subtle mistakes by @danielgtaylor in #161
- feat: add more examples by @danielgtaylor in #162
- fix: omit empty string/time headers from response by @danielgtaylor in #163
- fix: set response status after transforms by @danielgtaylor in #165
- fix: better comparison of encoded payloads for patch, fixes #73 by @danielgtaylor in #164
Full Changelog: v2.0.0-beta.3...v2.0.0-rc.1
v1.14.2
What's Changed
- fix: backport Huma v2 example pointer fix from #148 by @danielgtaylor in #154
Full Changelog: v1.14.1...v1.14.2
v2.0.0-beta.3
What's Changed
- chore(deps): bump github.com/gofiber/fiber/v2 from 2.45.0 to 2.49.2 by @dependabot in #129
- feat: oneOf, anyOf, allOf, not schema support by @danielgtaylor in #131
- fix: set explode=false for query params by @danielgtaylor in #136
- huma: v2: add middlewares support by @Insei in #134
- chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 by @dependabot in #135
- fix: allow fiber without StreamRequestBody, fixes #127 by @danielgtaylor in #138
- Fix: Update transforms.go to use explicit Host function from huma.Context by @james-andrewsmith in #139
- chore(deps): bump github.com/gofiber/fiber/v2 from 2.49.2 to 2.50.0 by @dependabot in #140
- docs: improve CLI docs around option naming by @danielgtaylor in #141
- Fixed a typo in Readme.md (cliend -> client) by @jmichael7 in #142
- Minor update to SSE example in README.md by @james-andrewsmith in #143
- fix: support v1 middleware, add example by @danielgtaylor in #144
- fix: add param re-use example, fixes #94 by @danielgtaylor in #146
- feat: support custom field schemas; add omittable example by @danielgtaylor in #145
- feat: add example for oneOf response, fix custom schema usage by @danielgtaylor in #147
- fix: prevent panic on examples for pointer field types by @danielgtaylor in #148
- feat: allow making query/header params required by @danielgtaylor in #149
- feat: better support for file uploads by @danielgtaylor in #150
- fix: add $schema field to input to allow round-trips by @danielgtaylor in #151
- feat: allow resolvers to set a custom response status code by @danielgtaylor in #152
New Contributors
- @Insei made their first contribution in #134
- @james-andrewsmith made their first contribution in #139
- @jmichael7 made their first contribution in #142
Full Changelog: v2.0.0-beta.2...v2.0.0-beta.3
v2.0.0-beta.2
What's Changed
- chore(deps): bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1 by @dependabot in #112
- docs: fix docs links by @danielgtaylor in #114
- fix: better support of generic named types by @danielgtaylor in #115
- fix: incorrect schema for embedded structs by @danielgtaylor in #116
- docs: fix minor typos by @omahs in #117
- fix: param date/time parsing, better tests/coverage by @danielgtaylor in #118
- Add GetMultipartForm method to huma context by @lordspinach in #119
- doc: update cli OnStart example to use v2 API by @nickajacks1 in #120
- fix: improved tests, fixed a few small issues by @danielgtaylor in #122
- docs: improve docs & examples by @danielgtaylor in #123
- feat: upgrade to Chi v5 by @danielgtaylor in #124
- docs: fix example by @danielgtaylor in #125
- feat: add convenience model validator by @danielgtaylor in #126
New Contributors
- @omahs made their first contribution in #117
- @lordspinach made their first contribution in #119
- @nickajacks1 made their first contribution in #120
Full Changelog: v2.0.0-beta.1...v2.0.0-beta.2
v2.0.0-beta.1
Please see the main project README for what is new in v2. This is a major breaking change with a significantly different API.
What's Changed
- Initial v2 Beta by @danielgtaylor in #111
Full Changelog: v1.14.1...v2.0.0-beta.1
v1.14.1
What's Changed
- fix: enforce path params are required by @iwong-isp in #103
Full Changelog: v1.14.0...v1.14.1
v1.14.0
Note: The generated schema reference behavior from Huma v1.13.0 has been reverted as it breaks things. This release uses the original behavior by default, and provides an opt-in fixed v1.13.0 behavior via schema.GenerateInline = false
! If you rely on the broken behavior you will want to set that value when upgrading.
What's Changed
- fix: implement Flusher interface for wrapped ResponseWriters by @mtiller in #89
- fix: add missing CORS headers by @mtiller in #90
- Add stoplight elements docs handler option by @lp-disco in #95
- fix: properly instantiate nested schemas, replaces #86 by @danielgtaylor in #100
- chore(deps): bump golang.org/x/crypto from 0.0.0-20220112180741-5e0467b6c7ce to 0.1.0 in /benchmark by @dependabot in #91
- chore(deps): bump golang.org/x/sys from 0.0.0-20220318055525-2edf467146b5 to 0.1.0 by @dependabot in #93
New Contributors
Full Changelog: v1.13.0...v1.14.0
v1.13.0
What's Changed
- chore(deps): bump github.com/labstack/echo/v4 from 4.1.15 to 4.9.0 in /benchmark by @dependabot in #72
- feat: avoids infinite recursion by @mt35-rs in #77
- feat: schema handler can now handle schema names with special characters by @mt35-rs in #81
- feat: ability to fetch router from huma context by @mt35-rs in #82
- Fix typo by @sdil in #85
- fix: this uses proper schema path for errors by @mt35-rs in #80
New Contributors
Full Changelog: v1.12.3...v1.13.0
v1.12.3
What's Changed
- fix: don't override vary header by @iwong-isp in #76
Full Changelog: v1.12.2...v1.12.3