coarnotify.patterns.reject ========================== .. py:module:: coarnotify.patterns.reject .. autoapi-nested-parse:: Pattern to represent a Reject notification https://coar-notify.net/specification/1.0.0/reject/ Classes ------- .. autoapisummary:: coarnotify.patterns.reject.Reject Module Contents --------------- .. py:class:: Reject(stream: Union[coarnotify.core.activitystreams2.ActivityStream, dict] = None, validate_stream_on_construct=True, validate_properties=True, validators=None, validation_context=None, properties_by_reference=True) Bases: :py:obj:`coarnotify.core.notify.NestedPatternObjectMixin`, :py:obj:`coarnotify.core.notify.NotifyPattern`, :py:obj:`coarnotify.core.notify.SummaryMixin` Class to represent a Reject notification .. py:method:: validate() -> bool In addition to the base validation apply the following constraints: * The ``inReplyTo`` property is required * The ``inReplyTo`` value must match the ``object.id`` value :return: ``True`` if the validation passes, otherwise raise a ``ValidationError`` .. py:attribute:: TYPE Reject type, the ActivityStreams Reject type