Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map validation, contextual validation, validator tags for custom map/slice types #2877

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Nov 5, 2021

  1. Always return ValidationErrors, expose failing index

    This way callers can always expect ValidationErrors, and in case
    of slice validation, they can also get indexes of the failing elements.
    kszafran committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    cb9b68b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04ccf17 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f26790b View commit details
    Browse the repository at this point in the history
  4. Add support for contextual validation

    By passing the Gin context to bindings, custom validators can take
    advantage of the information in the context.
    kszafran committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    b626f63 View commit details
    Browse the repository at this point in the history