本文整理匯總了Python中marshmallow.validates_schema方法的典型用法代碼示例。如果您正苦於以下問題:Python marshmallow.validates_schema方法的具體用法?Python marshmallow.validates_schema怎麽用?Python marshmallow.validates_schema使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類marshmallow
的用法示例。
在下文中一共展示了marshmallow.validates_schema方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: import marshmallow [as 別名]
# 或者: from marshmallow import validates_schema [as 別名]
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