Adding upstream version 0.0~git20250501.71edba4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c6ff472a6d
commit
c8085bda34
87 changed files with 24009 additions and 0 deletions
16
validation.go
Normal file
16
validation.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package activitypub
|
||||
|
||||
// ValidationErrors is an aggregated error interface that allows
|
||||
// a Validator implementation to return all possible errors.
|
||||
type ValidationErrors interface {
|
||||
error
|
||||
Errors() []error
|
||||
Add(error)
|
||||
}
|
||||
|
||||
// Validator is the interface that needs to be implemented by objects that
|
||||
// provide a validation mechanism for incoming ActivityPub Objects or IRIs
|
||||
// against an external set of rules.
|
||||
type Validator interface {
|
||||
Validate(receiver IRI, incoming Item) (bool, ValidationErrors)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue