Index: tools/json_schema_compiler/model.py |
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py |
index 3dfc3b2422208d8309d6f65a25e8ff15a1ba5dc9..cc91f9b342a2f87a9d5e568b47aa984eb802be95 100644 |
--- a/tools/json_schema_compiler/model.py |
+++ b/tools/json_schema_compiler/model.py |
@@ -40,6 +40,8 @@ class Namespace(object): |
Properties: |
- |name| the name of the namespace |
+ - |description| the description of the namespace |
+ - |availability| describes when the namespace first became available |
- |unix_name| the unix_name of the namespace |
- |source_file| the file that contained the namespace definition |
- |source_file_dir| the directory component of |source_file| |
@@ -55,6 +57,8 @@ class Namespace(object): |
""" |
def __init__(self, json, source_file, include_compiler_options=False): |
self.name = json['namespace'] |
+ self.description = json.get('description', "") |
+ self.availability = json.get('availability', None) |
self.unix_name = UnixName(self.name) |
self.source_file = source_file |
self.source_file_dir, self.source_file_filename = os.path.split(source_file) |