forgejo/modules/validation
Michael Jerger baa93ec66e
Some checks are pending
/ release (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
enhance validateable interface (#7714)
This PR is part of https://codeberg.org/forgejo/forgejo/pulls/4767 filed by @algernon

Validateable is enhanced for less duplication.

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.

### Release notes

- [x] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

Co-authored-by: zam <mirco.zachmann@meissa.de>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7714
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Michael Jerger <michael.jerger@meissa-gmbh.de>
Co-committed-by: Michael Jerger <michael.jerger@meissa-gmbh.de>
2025-05-30 13:07:35 +02:00
..
binding.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
binding_test.go Validate OAuth Redirect URIs (#32643) 2024-12-03 10:19:22 +01:00
email.go feat: relax email requirements (#7829) 2025-05-22 12:20:25 +02:00
email_test.go feat: relax email requirements (#7829) 2025-05-22 12:20:25 +02:00
glob_pattern_test.go [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
helpers.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
helpers_test.go chore: QoL improvements to tests (#7917) 2025-05-21 15:45:56 +02:00
refname_test.go [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
regex_pattern_test.go [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
validatable.go enhance validateable interface (#7714) 2025-05-30 13:07:35 +02:00
validatable_test.go enhance validateable interface (#7714) 2025-05-30 13:07:35 +02:00
validurl_test.go [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
validurllist_test.go Validate OAuth Redirect URIs (#32643) 2024-12-03 10:19:22 +01:00