Visitar URL original
Tags · APX403/huma · GitHub
Skip to content

Tags

Tags

v2.39.1

Toggle v2.39.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: distinguish collection and element matches when walking input (d…

…anielgtaylor#1082)

Resolvers and defaults are found by walking the input type and recording a
path to each match. A path to a match on a collection's own type, e.g. a
resolver on `type Coords [2]float64`, was indistinguishable from a path to a
match on its element type, so `everyPB` guessed by kind: collections were
always treated as containers to walk through. Now that fixed arrays are walked
too, that guess turned a resolver on a named array type into a panic, and it
was already wrong when a collection and its element both had resolvers, running
the element's twice and the collection's never.

Record a marker step in the path when descending into a collection's elements
so both cases are exact, and drop the kind-based guess.

Values reached through a map were also visited as copies, which panicked with
`reflect: reflect.Value.Set using unaddressable value` when a default was
applied and silently discarded resolver mutations. Copy the value out, walk it,
then write it back with `SetMapIndex`.

v2.39.0

Toggle v2.39.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(form-data): handle unmarshalling and validation of non-file JSON…

… form data fields (danielgtaylor#1060)

* feat(form-data): handle unmarshalling and validation of non-file JSON form data fields

* fix(form-data): harden JSON multipart field handling

- Emit the tagged content type in the generated OpenAPI encoding instead
  of always text/plain, so the spec matches how the field is parsed.
- Precompute the field schema and defaults at registration time rather
  than on every request, avoiding a per-request reflection walk.
- Panic at registration with actionable guidance when a struct/map form
  field lacks contentType:"application/json", instead of a confusing
  request-time "unsupported param type" error.
- Resolve the content type via parseContentType so +json suffixes and
  ;charset parameters are handled consistently with the body codecs.
- Share default application with the request body path (setDefaults) and
  add a benchmark.

---------

Co-authored-by: Robert Thomas <31854736+wolveix@users.noreply.github.com>

v2.38.0

Toggle v2.38.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore(deps): bump github.com/gofiber/fiber/v2 from 2.52.12 to 2.52.13 (…

…danielgtaylor#1022)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

v2.37.3

Toggle v2.37.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore(deps): bump github.com/gofiber/fiber/v2 from 2.52.11 to 2.52.12 (…

…danielgtaylor#984)

Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.52.11 to 2.52.12.
- [Release notes](https://github.com/gofiber/fiber/releases)
- [Commits](gofiber/fiber@v2.52.11...v2.52.12)

---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
  dependency-version: 2.52.12
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

v2.37.2

Toggle v2.37.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix form param doc regression (danielgtaylor#981)

v2.37.1

Toggle v2.37.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(group): ensure "Group" satisfies the configProvider interface (da…

…nielgtaylor#976)

v2.37.0

Toggle v2.37.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore(api,docs): update unpkg libraries, specify SRI hash, add strict…

… CSP (danielgtaylor#916)

* chore(api): update unpkg libraries, specify SRI hash

* chore(api): use strict CSPs for docs Web UI

* chore(api): use uniform HTML structure across all different API docs

v2.36.0

Toggle v2.36.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Revert danielgtaylor#947 (temporary) (danielgtaylor#971)

v2.35.0

Toggle v2.35.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added wrappers for the remaining error codes defined in the standard …

…library. (danielgtaylor#876)

v2.34.3

Toggle v2.34.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix Header Parsing (danielgtaylor#944)

* Fix header parsing for complex types