Lines Matching refs:type
56 type = propmetadata['type']
58 if type == JSON_TYPE_STRING:
60 if type == JSON_TYPE_BOOLEAN:
62 if type == JSON_TYPE_INTEGER:
64 if type == JSON_TYPE_NUMBER:
66 if type == JSON_TYPE_OBJECT:
68 if type == JSON_TYPE_ARRAY:
71 raise Exception('unknown json-schema type [' + type + ']')
74 type = propmetadata['type']
76 if type == JSON_TYPE_STRING:
78 if type == JSON_TYPE_BOOLEAN:
80 if type == JSON_TYPE_INTEGER:
82 if type == JSON_TYPE_NUMBER:
84 if type == JSON_TYPE_OBJECT:
92 if type == JSON_TYPE_ARRAY:
94 itemstype = itemsmetadata['type']
97 raise Exception('missing "type" field')
108 raise Exception('unsupported type [%s]' % itemstype)
110 raise Exception('unknown json-schema type [' + type + ']')
114 type = propmetadata['type']
115 return type == JSON_TYPE_BOOLEAN or type == JSON_TYPE_INTEGER or type == JSON_TYPE_NUMBER
134 if JSON_TYPE_ARRAY == prop["type"]:
137 if JSON_TYPE_OBJECT == array_items["type"] and not array_items["cppname"] in assembly:
140 if JSON_TYPE_OBJECT == prop["type"] and not prop["cppname"] in assembly:
156 obj_type = obj['type']
166 prop_type = prop['type']
185 raise Exception('missing "type" field')
189 array_items_type = array_items["type"]
210 if prop['type'] == JSON_TYPE_ARRAY:
212 if array_items['type'] == JSON_TYPE_OBJECT:
214 if prop['type'] == JSON_TYPE_OBJECT:
223 if prop['type'] == JSON_TYPE_ARRAY: