Добавить контекст схемы в Uplink - PullRequest
0 голосов
/ 27 июня 2019

Моя схема и класс Consumer выглядят следующим образом:

from uplink import (
    Consumer,
    post,
    Field,
    json,
)

class = CustomerSchema(Schema):
    id = fields.Integer()
    name = fields.String()

class MyClass(Consumer):
    @json
    @post('/sort_clients')
    def filter_clients(self, customer_type: Field) -> CustomerSchema:

Есть ли способ как-нибудь передать значение customer_type в CustomerSchema? Как контекст или новое поле схемы?

...