Wonder
Wonder
* schematics==2.0.1 --- The [documentation here](http://schematics.readthedocs.io/en/latest/usage/validation.html#validation-errors): However I got `DataError` exception when required-constraint is not satisfied. ```python ipdb> exp DataError({'password': ConversionError([ErrorMessage('This field is required.', None)])}) ipdb> exp.messages {'password': ConversionError([ErrorMessage('This field...
- schematics version: 2.0.1 --- Below is the test code: ```python from schematics.models import Model from schematics.types import StringType, IntType, ListType, ModelType from schematics.transforms import blacklist, whitelist class Group(Model): id...
Imagine we can code like below: ```python from schematics.models import Model, ModelCollection from schematics.types import StringType from schematics.transforms import blacklist class User(Model): name = StringType() password = StringType() class Options:...
## Derive new Model class from existing by combination of its roles Take the following User model as example: ```python class User(Model): id = IntType() name = StringType(required=True) password =...
## Below is the current behaviour ```python >>> from schematics.models import Model >>> from schematics.types import StringType >>> >>> >>> class UserSelfUpdateSerializer(Model): ... name = StringType() ... password = StringType()...
Some misc updates when I apply json-rpc to latest two projects. Just for your review. - Support custom json encoder for serializing response data - Support registering global decorators for...
I made a demo project to reveal the issue: https://github.com/wonderbeyond/proto-demo
In my scenario, a session for user `[email protected]` has already been established. The user agent may be redirected to the login page, without logging out the the current user, Then...
`ms-duplex-gt`规则使用max属性的值来作为 **最小值** 参数, 语义是不是反了, 应该用 `min` 吧? 我当时没有继续纠结, 就这样用了: ``` html ``` 但是后来发现这与浏览器自己语义是冲突的(针对`input[type=number]`), 比如在chrome里面, 向上滚动鼠标的时候最大能输入的值就是max指定的值, 与avalon.validation的语义正好相反. 附avalon.validation的gt相关实现: ``` javascript gt: { message: '必须大于{{max}}', get: function(value, data, next) { var elem...
## My envs ```shell - Python 3.6.3 - asyncpgsa==0.18.1 - asyncpg==0.12.0 - sqlalchemy==1.1.15 ``` ## My code sample ```python from asyncpgsa import PG from app import app DB_CONFIG = {...