validictory currently only treats a true dict object as being of {"type": "object"}; it does not allow dict-like objects, like UserDict, sqlalchemy.engine.result.RowProxy, and webob.multidict.NestedMultiDict, to validate as {"type": "object"} -- this PR changes that.
Note that if you don't want to add test dependencies on sqlalchemy and webob, you can just cherry-pick ff81810, which adds no new dependencies.
validictory currently only treats a true
dict
object as being of{"type": "object"}
; it does not allow dict-like objects, likeUserDict
,sqlalchemy.engine.result.RowProxy
, andwebob.multidict.NestedMultiDict
, to validate as{"type": "object"}
-- this PR changes that.Note that if you don't want to add test dependencies on
sqlalchemy
andwebob
, you can just cherry-pick ff81810, which adds no new dependencies.The
flake8
failure is from pre-existing issues (mostly lines that are too long).