Releases: gorilla/schema
Releases · gorilla/schema
v1.4.1
Security Release
Fixes an issue where sparse slice deserialization can cause memory exhaustion CVE-2024-37298
Thanks to @AlexVasiluta for the report and following responsible disclosure.
Full Changelog: v1.4.0...v1.4.1
v1.4.0
What's Changed
- feat: if a different type in slice, raise error by @lll-lll-lll-lll in #212
- fixed panic: reflect: indirection through nil pointer to embedded struct by @morus12 in #211
New Contributors
- @lll-lll-lll-lll made their first contribution in #212
Full Changelog: v1.3.0...v1.3.1
v1.3.0
Release v1.2.1
What's Changed
- build: use build matrix; drop Go <= 1.10 by @elithrar in #147
- doc: Update README CI badge by @elithrar in #148
- docs: remove travis badge by @elithrar in #149
- build: fix config.yml by @elithrar in #150
- [bug] Registered encoder doesn't work for struct pointer types by @tkhametov in #174
- Update README.md by @coreydaley in #197
- [GPT-98] Update go version & add verification/testing tools by @apoorvajagtap in #200
- fix misspell by @YuyaAbo in #192
- Update issues.yml by @coreydaley in #201
- update GitHub workflows by @coreydaley in #205
New Contributors
- @tkhametov made their first contribution in #174
- @coreydaley made their first contribution in #197
- @apoorvajagtap made their first contribution in #200
- @YuyaAbo made their first contribution in #192
Full Changelog: v1.2.0...v1.2.1
v1.2.0
Fixes a case where schema panicked when provided a pointer to embedded structs.
CHANGELOG
Fine-grained decoding errors
Decoding errors now have types for more comprehensive error reporting:
UnknownKeyError
is returned when an unknown key is encountered in the source map and the decoder is not set to ignore unknown keys.EmptyFieldError
is returned when a required field is empty.
Both error types have a Key
attribute that can be inspected to determine the field that caused the error.
Fix handling of empty values for types that implement TextUnmarshaler
Fix handling of empty value. (#104) If a value is decoding into a type that implements the encoding.TextUnmarshaler interface, the decoder should use it's UnmarshalText method in all instances including an empty value. Previously, would ignore the method decoding the field as the empty value of the type.
v1.0.1: Fix slice of structs TextUnmarshaler. (#103)
Fix handling of situation where a slice of structs implments the encoding.TextUnmarshaler interface, previously it would return "invalid path" error. Includes, some minor refactoring and documentation to clarify `isUnmarshaler` output.