diff options
author | kali <kali@leap.se> | 2012-09-24 22:21:50 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-09-24 22:21:50 +0900 |
commit | 30570bd89c04a56b35b91a0bc1d5fc00bb6ad266 (patch) | |
tree | 10364a8c906b34474f0e453fd5a3b29c4d6fba92 /pkg | |
parent | 5c32cc7b5e00853b3cc28b5003b92ab009418dff (diff) |
add schema to JSONLeapConfig classes
and a jsonvalidate function too,
that calls to jsonchemea.validate(self, data) with self.schema
We're using the specs to both purposes now:
* providing a type casting system for our config options (work in
progress for the type casting)
* json schema validation
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/requirements.pip | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/requirements.pip b/pkg/requirements.pip index 5eeabf5c..78d8624a 100644 --- a/pkg/requirements.pip +++ b/pkg/requirements.pip @@ -4,3 +4,4 @@ requests ping netifaces python-gnutls==1.1.9 # see https://bugs.launchpad.net/ubuntu/+source/python-gnutls/+bug/1027129 +jsonschema |