coarnotify.patterns.accept¶
Pattern to represent an Accept notification https://coar-notify.net/specification/1.0.0/accept/
Classes¶
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
requiredRequires the
inReplyTo
value to be the same as theobject.id
value
- Returns:
True
if valid, otherwise raises acoarnotify.exceptions.ValidationError
- TYPE¶
The Accept type