Eve 0.8.1 with Cerberus 1.2 - SchemaError with 'description'

10 views
Skip to first unread message

Si mon

unread,
Dec 14, 2018, 4:48:01 PM12/14/18
to Eve REST Framework
Hi all,

I've upgraded my env to python 3.7.1, eve 0.8.1 and cerberus 1.2

when I use 'description' in the schema (this is handy for me because I use swagger-ui) I'll get an error like:

cerberus.schema.SchemaError: {'custid': [{'description': ['unknown rule']}]...

I don't know where to look to resolve that and thought since in http://docs.python-eve.org/en/latest/validation.html there is still a note concerning eve <> cerberus versions. Using new versions might be an issue?

Any help is appreciated :-)

devices = {
    ...
    'schema': {
        'custid': {
            'description': 'IDMS Customer-ID',
            'type': 'integer',
            'minlength': 1,
            'maxlength': 16,
            'required': True,
        },
        ...
        }
    }
}

br
Simon
Reply all
Reply to author
Forward
0 new messages