class HeaderSchema(m.Schema):
    user_id = compat.set_data_key(field=m.fields.String(required=True), key="X-UserId")
Exemple #2
0
class HeadersSchema(m.Schema):
    name = set_data_key(field=m.fields.String(load_from="x-name",
                                              required=True),
                        key="x-name")
Exemple #3
0
class HeadersModel(mo.Model):
    name = set_data_key(field=mo.fields.String(load_from="x-name",
                                               required=True),
                        key="x-name")
class HeaderModel(mo.Model):
    user_id = compat.set_data_key(field=m.fields.String(required=True), key="X-UserId")