jpmckinney / validictory

🎓 deprecated general purpose python data validator
Other
240 stars 57 forks source link

Superfluous quote in blank validation #77

Closed jmcnamara closed 10 years ago

jmcnamara commented 10 years ago

There is an extra, superfluous, quote at the end of the blank validation output.

Example taken from docs:

import json
import validictory

data = json.loads(''' {"hello": "", "testing": ""}''')

schema = {
    "properties": {
        "hello": {
            "blank": True # passes
        },
        "testing": {
            "blank": False # fails
        }
    }
}

try:
    validictory.validate(data, schema)
except validictory.validator.FieldValidationError as e:
    print e

Output:

Value '' for field 'testing' cannot be blank'

Regards,

John

jmcnamara commented 10 years ago

Same as other issue. This is fixed in the GitHub master, although not in the 1.0.0a2 version on PyPI.

Closing.