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.NotifyPatternClass to represent an Accept notification
- validate() bool¶
Validate the Accept pattern.
In addition to the base validation, this:
Makes
inReplyTorequiredRequires the
inReplyTovalue to be the same as theobject.idvalue
- Returns:
Trueif valid, otherwise raises acoarnotify.exceptions.ValidationError
- TYPE¶
The Accept type