aiohttp-admin icon indicating copy to clipboard operation
aiohttp-admin copied to clipboard

create_validator() validator correction

Open vladz opened this issue 7 years ago • 0 comments

    new_schema = t.Dict({})
    new_schema.keys = keys

This create_validator func takes not empty Dict (with keys and with _keys) and then this lines creates empty Dict() and add keys without _keys. In trafaret Dict.transform() method raise DataError if not _keys.

vladz avatar Feb 24 '18 22:02 vladz