Python marshmallow.validates() Examples
The following are 1
code examples of marshmallow.validates().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
marshmallow
, or try the search function
.
Example #1
Source File: marshmallow.py From flask-unchained with MIT License | 4 votes |
def __init__(self): self.Serializer = flask_ma.Schema self.ModelSerializer = ModelSerializer # alias marshmallow stuffs self.pre_load = ma.pre_load self.post_load = ma.post_load self.pre_dump = ma.pre_dump self.post_dump = ma.post_dump self.validates = ma.validates self.validates_schema = ma.validates_schema self.ValidationError = ma.ValidationError # alias marshmallow fields self.Bool = ma.fields.Bool self.Boolean = ma.fields.Boolean self.Constant = ma.fields.Constant self.Date = ma.fields.Date self.DateTime = ma.fields.DateTime self.NaiveDateTime = ma.fields.NaiveDateTime self.AwareDateTime = ma.fields.AwareDateTime self.Decimal = ma.fields.Decimal self.Dict = ma.fields.Dict self.Email = ma.fields.Email self.Field = ma.fields.Field self.Float = ma.fields.Float self.Function = ma.fields.Function self.Int = ma.fields.Int self.Integer = ma.fields.Integer self.List = ma.fields.List self.Mapping = ma.fields.Mapping self.Method = ma.fields.Method self.Nested = ma.fields.Nested self.Number = ma.fields.Number self.Pluck = ma.fields.Pluck self.Raw = ma.fields.Raw self.Str = ma.fields.Str self.String = ma.fields.String self.Time = ma.fields.Time self.TimeDelta = ma.fields.TimeDelta self.Tuple = ma.fields.Tuple self.UUID = ma.fields.UUID self.Url = ma.fields.Url self.URL = ma.fields.URL # alias flask_marshmallow fields self.AbsoluteUrlFor = flask_ma.fields.AbsoluteUrlFor self.AbsoluteURLFor = flask_ma.fields.AbsoluteURLFor self.UrlFor = flask_ma.fields.UrlFor self.URLFor = flask_ma.fields.URLFor self.Hyperlinks = flask_ma.fields.Hyperlinks self.HyperlinkRelated = HyperlinkRelated