unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Joseph LaFreniere <joseph@lafreniere.xyz>
To: 44562@debbugs.gnu.org
Subject: [bug#44562] [PATCH 05/15] gnu: Add go-gopkg-in-go-playground-validator-v9.
Date: Tue, 10 Nov 2020 16:47:49 -0600	[thread overview]
Message-ID: <87r1p096cq.fsf@lafreniere.xyz> (raw)
In-Reply-To: <87361galdn.fsf@lafreniere.xyz>

[-- Attachment #1: Type: text/plain, Size: 22 bytes --]


--
Joseph LaFreniere

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0005-gnu-Add-go-gopkg-in-go-playground-validator-v9.patch --]
[-- Type: text/x-patch, Size: 3096 bytes --]

From e4b414d320e2f77bbe07719484822cea855a57b6 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 26 Jul 2020 23:42:48 -0500
Subject: [PATCH 05/15] gnu: Add go-gopkg-in-go-playground-validator-v9.

* gnu/packages/golang.scm (go-gopkg-in-go-playground-validator-v9): New variable.
---
 gnu/packages/golang.scm | 48 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 6742404f3f..32605fbc65 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -625,6 +625,54 @@ professionally translated
 @end itemize")
     (license license:expat)))
 
+(define-public go-gopkg-in-go-playground-validator-v9
+  (package
+    (name "go-gopkg-in-go-playground-validator-v9")
+    (version "9.31.0")
+    (home-page "https://gopkg.in/go-playground/validator.v9")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/go-playground/validator")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1f8c77s8kx9rip2jarv27x5s4xkcmanh4ndyhbcwvrhncs5rq061"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "gopkg.in/go-playground/validator.v9"))
+    (inputs
+     `(("go-gopkg-in-go-playground-assert-v1"
+        ,go-gopkg-in-go-playground-assert-v1)
+       ("go-github-com-go-playground-locales"
+        ,go-github-com-go-playground-locales)
+       ("go-github-com-go-playground-universal-translator"
+        ,go-github-com-go-playground-universal-translator)
+       ("go-github-com-leodido-go-urn" ,go-github-com-leodido-go-urn)))
+    (synopsis "Validator for structs and individual fields based on tags")
+    (description
+     "This package implements value validations for structs and individual
+fields based on tags.  It has the following unique features:
+
+@itemize
+@item Cross Field and Cross Struct validations by using validation tags or custom validators
+@item Slice, Array and Map diving, which allows any or all levels of a multidimensional field to be validated
+@item Ability to dive into both map keys and values for validation
+@item Handles type interface by determining it's underlying type prior to validation
+@item Handles custom field types such as sql driver
+@uref{https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29,
+Valuer}
+@item Alias validation tags, which allows for mapping of several validations
+to a single tag for easier defining of validations on structs
+@item Extraction of custom defined Field Name e.g. can specify to extract the
+JSON name while validating and have it available in the resulting FieldError
+@item Customizable i18n aware error messages.
+@item Default validator for the @uref{https://github.com/gin-gonic/gin, gin}
+web framework
+@end itemize")
+    (license license:expat)))
+
 (define-public go-gopkg.in-tomb.v2
   (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
         (revision "0"))
-- 
2.29.2


  parent reply	other threads:[~2020-11-10 22:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10 22:37 [bug#44562] [PATCH 01/15] gnu: Add go-github-com-leodido-go-urn Joseph LaFreniere
2020-11-10 22:45 ` [bug#44562] [PATCH 02/15] gnu: Add go-github-com-go-playground-locales Joseph LaFreniere
2020-11-10 22:46 ` [bug#44562] [PATCH 03/15] gnu: Add go-github-com-go-playground-universal-translator Joseph LaFreniere
2020-11-10 22:47 ` [bug#44562] [PATCH 04/15] gnu: Add go-gopkg-in-go-playground-assert-v1 Joseph LaFreniere
2020-11-10 22:47 ` Joseph LaFreniere [this message]
2020-11-10 22:48 ` [bug#44562] [PATCH 06/15] gnu: Add go-github-com-goccy-yaml Joseph LaFreniere
2020-11-10 22:49 ` [bug#44562] [PATCH 07/15] gnu: Add go-github-com-Songmu-gitconfig Joseph LaFreniere
2020-11-10 22:49 ` [bug#44562] [PATCH 08/15] gnu: Add go-github-com-golangplus-fmt Joseph LaFreniere
2020-11-10 22:50 ` [bug#44562] [PATCH 09/15] gnu: Add go-github-com-golangplus-testing Joseph LaFreniere
2020-11-10 22:50 ` [bug#44562] [PATCH 10/15] gnu: Add go-github-com-daviddengcn-go-colortext Joseph LaFreniere
2020-11-10 22:52 ` [bug#44562] [PATCH 11/15] gnu: Add go-github-com-motemen-go-colorine Joseph LaFreniere
2020-11-10 22:53 ` [bug#44562] [PATCH 12/15] gnu: Add go-golang.org-x-net-html Joseph LaFreniere
2020-11-10 22:53 ` [bug#44562] [PATCH 13/15] gnu: Add go-github-com-urfave-cli-v2 Joseph LaFreniere
2020-11-10 22:54 ` [bug#44562] [PATCH 14/15] gnu: Add go-github-com-x-motemen-ghq Joseph LaFreniere
2020-11-10 22:54 ` [bug#44562] [PATCH 15/15] gnu: Add ghq Joseph LaFreniere
2021-01-03 15:24   ` bug#44562: " Efraim Flashner
2021-01-03 15:23 ` [bug#44562] [PATCH 01/15] gnu: Add go-github-com-leodido-go-urn Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1p096cq.fsf@lafreniere.xyz \
    --to=joseph@lafreniere.xyz \
    --cc=44562@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).