summaryrefslogtreecommitdiff
path: root/src/leap/base/specs.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-25 05:48:06 +0900
committerkali <kali@leap.se>2012-10-02 05:27:15 +0900
commitabf481cab381a86d8a9c5607a131b56636081382 (patch)
tree813ef6de78207cde08da6afa5f73e5d52af1e385 /src/leap/base/specs.py
parent5d8e518d03e9fd045a75a63fec79b52392266c26 (diff)
refactored jsonconfig, included jsonschema validation
and type casting.
Diffstat (limited to 'src/leap/base/specs.py')
-rw-r--r--src/leap/base/specs.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/leap/base/specs.py b/src/leap/base/specs.py
index 641e795a..b4bb8dcf 100644
--- a/src/leap/base/specs.py
+++ b/src/leap/base/specs.py
@@ -44,11 +44,16 @@ leap_provider_spec = {
'public_key': {
'type': unicode # fingerprint
},
- 'ca_cert': {
- 'type': unicode
+ 'ca_cert_fingerprint': {
+ 'type': unicode,
},
'ca_cert_uri': {
- 'type': unicode
+ 'type': unicode,
+ 'format': 'https-uri'
+ },
+ 'languages': {
+ 'type': list,
+ 'default': ['en']
}
}
}