app.serializers.user.VerifyRoleId

class app.serializers.user.VerifyRoleId(*, load_default: Any = <marshmallow.missing>, missing: Any = <marshmallow.missing>, dump_default: Any = <marshmallow.missing>, default: Any = <marshmallow.missing>, data_key: Optional[str] = None, attribute: Optional[str] = None, validate: Optional[Union[Callable[[Any], Any], Iterable[Callable[[Any], Any]]]] = None, required: bool = False, allow_none: Optional[bool] = None, load_only: bool = False, dump_only: bool = False, error_messages: Optional[Dict[str, str]] = None, metadata: Optional[Mapping[str, Any]] = None, **additional_metadata)

Bases: marshmallow.fields.Field

Attributes

VerifyRoleId.context

The context dictionary for the parent Schema.

VerifyRoleId.default

VerifyRoleId.default_error_messages

Default error messages for various kinds of errors.

VerifyRoleId.missing

VerifyRoleId.name

VerifyRoleId.parent

VerifyRoleId.root

Methods

VerifyRoleId.__init__(*[, load_default, ...])

VerifyRoleId.deserialize(value[, attr, data])

Deserialize value.

VerifyRoleId.fail(key, **kwargs)

Helper method that raises a ValidationError with an error message from self.error_messages.

VerifyRoleId.get_value(obj, attr[, ...])

Return the value for a given key from an object.

VerifyRoleId.make_error(key, **kwargs)

Helper method to make a ValidationError with an error message from self.error_messages.

VerifyRoleId.serialize(attr, obj[, accessor])

Pulls the value for the given key from the object, applies the field's formatting and returns the result.