flowmachine.core.server.query_schemas.subscriber_subset¶
Class NoneOrQuery¶
NoneOrQuery()
Validator which fails if value
is not the id of a real query, or is not None`.
Class SubscriberSubset¶
SubscriberSubset(required=False, allow_none=True, validate=None, **kwargs)
Represents a subscriber subset. This can either be a string representing a query_id or None
, meaning "all subscribers".
Attributes¶
Methods¶
deserialize¶
deserialize(self, value: Any, attr: str = None, data: Mapping[str, Any] = None, **kwargs) -> Optional[flowmachine.core.table.Table]
Deserialize value
.
:param value: The value to deserialize. :param attr: The attribute/key in data
to deserialize. :param data: The raw input data passed to Schema.load
. :param kwargs: Field-specific keyword arguments. :raise ValidationError: If an invalid value is passed or if a required value is missing.
Returns¶
typing.Optional
_validate_all¶
_validate_all
context¶
context
The context dictionary for the parent :class:Schema
.
default¶
default
missing¶
missing