|
@@ -51,7 +51,7 @@ class ParseJsonSchema(ParseDbSchema):
|
|
|
with open(schema_path, "r") as f:
|
|
|
self.schemas.append(json.load(f))
|
|
|
# Load schmea dereferenced and cleaned by default values
|
|
|
- #self.schemas.append(self.read_schema_and_parse_for_mongodb(schema_path))
|
|
|
+ # self.schemas.append(self.read_schema_and_parse_for_mongodb(schema_path))
|
|
|
|
|
|
except Exception as e:
|
|
|
err = ("Could not load json schema {0}, "
|
|
@@ -66,7 +66,7 @@ class ParseJsonSchema(ParseDbSchema):
|
|
|
'''
|
|
|
# Don't use strip() instaed of replace since schema_c.strip(schema_)
|
|
|
# will discard the c as well which is not a appropriate output
|
|
|
- return [os.path.basename(p).replace("schema_","").split(".")[0] for p in self._schema_paths]
|
|
|
+ return [os.path.basename(p).replace("schema_", "").split(".")[0] for p in self._schema_paths]
|
|
|
|
|
|
def get_fields(self) -> list:
|
|
|
'''
|
|
@@ -401,7 +401,7 @@ class ParseJsonSchema(ParseDbSchema):
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
-# Only for testing
|
|
|
+ # Only for testing
|
|
|
|
|
|
schema_path = os.path.join(".", "mongo_schema", "schema_components.json")
|
|
|
|