Repository navigation
Tags
Tags
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`.
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>
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>
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
Added wrappers for the remaining error codes defined in the standard … …library. (danielgtaylor#876)
Fix Header Parsing (danielgtaylor#944) * Fix header parsing for complex types
PreviousNext