Codebase list golang-github-go-playground-validator-v10 / 212c46a
Initial packaging. Cyril Brulebois 3 years ago
9 changed file(s) with 130 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 golang-github-go-playground-validator (10.4.1-1) UNRELEASED; urgency=medium
1
2 * Initial release (Closes: TODO)
3
4 -- Cyril Brulebois <cyril@debamax.com> Sun, 27 Dec 2020 09:15:07 +0000
0 Source: golang-github-go-playground-validator
1 Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
2 Uploaders: Cyril Brulebois <cyril@debamax.com>
3 Section: golang
4 Testsuite: autopkgtest-pkg-go
5 Priority: optional
6 Build-Depends: debhelper-compat (= 13),
7 dh-golang,
8 golang-any,
9 golang-github-go-playground-assert-v2-dev,
10 golang-github-go-playground-locales-dev,
11 golang-github-go-playground-universal-translator-dev,
12 golang-github-leodido-go-urn-dev,
13 golang-golang-x-crypto-dev
14 Standards-Version: 4.5.0
15 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-go-playground-validator
16 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-go-playground-validator.git
17 Homepage: https://github.com/go-playground/validator
18 Rules-Requires-Root: no
19 XS-Go-Import-Path: github.com/go-playground/validator
20
21 Package: golang-github-go-playground-validator-dev
22 Architecture: all
23 Depends: golang-github-go-playground-assert-v2-dev,
24 golang-github-go-playground-locales-dev,
25 golang-github-go-playground-universal-translator-dev,
26 golang-github-leodido-go-urn-dev,
27 golang-golang-x-crypto-dev,
28 ${misc:Depends}
29 Description: Go library for struct and field validation
30 The validator package implements value validations for structs and
31 individual fields based on tags.
32 .
33 It has the following unique features:
34 - Cross Field and Cross Struct validation by using validation tags
35 or custom validators.
36 - Slice, Array and Map diving, which allows any or all levels of a
37 multidimensional field to be validated.
38 - Ability to dive into both map keys and values for validation.
39 - Handles type interface by determining its underlying type prior
40 to validation.
41 - Handles custom field types such as the SQL driver's Valuer.
42 - Alias validation tags, which allows for mapping of several
43 validations to a single tag for easier definition of validations
44 on structs.
45 - Extraction of custom defined Field Name, allowing to specify
46 extracting the JSON name while validating and making it available
47 in the resulting FieldError.
48 - Customizable i18n-aware error messages.
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: validator
2 Upstream-Contact: Dean Karn <dean.karn@gmail.com>
3 Source: https://github.com/go-playground/validator
4
5 Files: *
6 Copyright: 2015 Go Playgound
7 2015 Dean Karn <dean.karn@gmail.com>
8 License: Expat
9
10 Files: debian/*
11 Copyright: 2020 Cyril Brulebois <cyril@debamax.com>
12 License: Expat
13 Comment: Debian packaging is licensed under the same terms as upstream
14
15 License: Expat
16 Permission is hereby granted, free of charge, to any person obtaining a copy
17 of this software and associated documentation files (the "Software"), to deal
18 in the Software without restriction, including without limitation the rights
19 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20 copies of the Software, and to permit persons to whom the Software is
21 furnished to do so, subject to the following conditions:
22 .
23 The above copyright notice and this permission notice shall be included in all
24 copies or substantial portions of the Software.
25 .
26 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32 SOFTWARE.
0 [DEFAULT]
1 debian-branch = debian/sid
2 dist = DEP14
0 # auto-generated, DO NOT MODIFY.
1 # The authoritative copy of this file lives at:
2 # https://salsa.debian.org/go-team/ci/blob/master/config/gitlabciyml.go
3
4 image: stapelberg/ci2
5
6 test_the_archive:
7 artifacts:
8 paths:
9 - before-applying-commit.json
10 - after-applying-commit.json
11 script:
12 # Create an overlay to discard writes to /srv/gopath/src after the build:
13 - "rm -rf /cache/overlay/{upper,work}"
14 - "mkdir -p /cache/overlay/{upper,work}"
15 - "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src"
16 - "export GOPATH=/srv/gopath"
17 - "export GOCACHE=/cache/go"
18 # Build the world as-is:
19 - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json"
20 # Copy this package into the overlay:
21 - "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'"
22 - "pgt-gopath -dsc /tmp/export/*.dsc"
23 # Rebuild the world:
24 - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json"
25 - "ci-diff before-applying-commit.json after-applying-commit.json"
0 #!/usr/bin/make -f
1
2 %:
3 dh $@ --builddirectory=_build --buildsystem=golang --with=golang
0 3.0 (quilt)
0 ---
1 Bug-Database: https://github.com/go-playground/validator/issues
2 Bug-Submit: https://github.com/go-playground/validator/issues/new
3 Repository: https://github.com/go-playground/validator.git
4 Repository-Browse: https://github.com/go-playground/validator
0 version=4
1 opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%golang-github-go-playground-validator-$1.tar.gz%,\
2 uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/" \
3 https://github.com/go-playground/validator/tags .*/v?(\d\S*)\.tar\.gz debian