|
@@ -25,7 +25,8 @@ class ParseJsonSchema(ParseDbSchema):
|
|
|
Class for retrieving column properties from mongodb jsonSchema
|
|
|
'''
|
|
|
|
|
|
- def __init__(self, schema_paths: [list, str], log_file: str = None):
|
|
|
+ # def __init__(self, schema_paths: [list, str], log_file: str = None):
|
|
|
+ def __init__(self, schema_paths, log_file: str = None):
|
|
|
'''
|
|
|
'''
|
|
|
from cdplib.log import Log
|
|
@@ -212,12 +213,18 @@ class ParseJsonSchema(ParseDbSchema):
|
|
|
|
|
|
return result
|
|
|
|
|
|
+ # def _parse_one(self,
|
|
|
+ # schema: dict,
|
|
|
+ # field_info: str = None,
|
|
|
+ # required_only: bool = False,
|
|
|
+ # super_field_name: str = None,
|
|
|
+ # already_parsed: (list, dict) = None) -> (list, dict):
|
|
|
def _parse_one(self,
|
|
|
- schema: dict,
|
|
|
- field_info: str = None,
|
|
|
- required_only: bool = False,
|
|
|
- super_field_name: str = None,
|
|
|
- already_parsed: (list, dict) = None) -> (list, dict):
|
|
|
+ schema: dict,
|
|
|
+ field_info: str = None,
|
|
|
+ required_only: bool = False,
|
|
|
+ super_field_name: str = None,
|
|
|
+ already_parsed = None):
|
|
|
'''
|
|
|
Recursive function that returns a list of (nested) field names or
|
|
|
a dictionary of (nested) field names with field characteristics.
|