fiber/docs/api
ItsMeSamey f08ebf4335
🐛 fix: Nil pointer dereference with Must Bind binding (#3171)
* Fix nil pointer dereference with Must Bind binding error

if err is nil err.Error() panics
(eg. c.Bind().Must().JSON(...) successfully binds but panics

* Added returnErr test

make sure returnErr works with nil error

* Reordered returnErr nil check

as in majority of cases we expect err to be nil, this should provide better short-cutting

* Use require.NoError

* Update bind_test.go

* Renamed Must to WithAutoHandling

* Update bind.md

Added a requested clarification

* renamed Should to WithoutAutoHandling and Bind.should to Bind.dontHandle

* renamed dontHandle to dontHandleErrs

* fixed formatting

* fixed a typo

* Update binder documentation

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-11-25 11:51:36 +01:00
..
_category_.json [v3 Maintenance]: Consolidate and Document Core Changes in v3 (#2934) 2024-04-23 08:18:19 +02:00
app.md 🔥 Feature: Add TestConfig to app.Test() for configurable testing (#3161) 2024-11-22 08:43:38 +01:00
bind.md 🐛 fix: Nil pointer dereference with Must Bind binding (#3171) 2024-11-25 11:51:36 +01:00
constants.md v3: Add support for consistent documentation using markdownlint (#3064) 2024-07-11 15:21:56 +02:00
ctx.md 📚 Doc: Updates to Context documentation (#3206) 2024-11-18 10:10:59 +01:00
fiber.md 🔥Feature: Add support for TrustProxy (#3170) 2024-10-17 08:29:03 +02:00
hooks.md 📚 Doc: Updates to API documentation and README (#3205) 2024-11-16 15:24:14 +01:00
log.md 📚 Doc: Updates to API documentation and README (#3205) 2024-11-16 15:24:14 +01:00
redirect.md 📚 Doc: Updates to API documentation and README (#3205) 2024-11-16 15:24:14 +01:00