coarnotify.patterns.accept

Pattern to represent an Accept notification https://coar-notify.net/specification/1.0.0/accept/

Classes

Accept

Class to represent an Accept notification

Module Contents

class coarnotify.patterns.accept.Accept(stream: coarnotify.core.activitystreams2.ActivityStream | dict = None, validate_stream_on_construct=True, validate_properties=True, validators=None, validation_context=None, properties_by_reference=True)

Bases: coarnotify.core.notify.NestedPatternObjectMixin, coarnotify.core.notify.NotifyPattern

Class to represent an Accept notification

validate() bool

Validate the Accept pattern.

In addition to the base validation, this:

  • Makes inReplyTo required

  • Requires the inReplyTo value to be the same as the object.id value

Returns:

True if valid, otherwise raises a coarnotify.exceptions.ValidationError

TYPE

The Accept type