Gorilla Schema Versions Save

Package gorilla/schema fills a struct with form values.

v1.2.0

3 years ago

Fixes a case where schema panicked when provided a pointer to embedded structs.

CHANGELOG

  • fixed panic on pointers to embedded structs (#139) @morus12
  • fixed decoding for "required" struct fields (#126) @kucherenkovova
  • Create release-drafter.yml (#125) @elithrar
  • Update config.yml (#123) @elithrar
  • Create config.yml (#122) @elithrar

v1.1.0

5 years ago

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.

v1.0.2

6 years ago

v1.0.1

6 years ago