Refactor APICall and schema validation

This commit is contained in:
allegroai
2021-01-05 18:30:59 +02:00
parent 23736efbc3
commit bdf6c353bd
7 changed files with 68 additions and 58 deletions

View File

@@ -248,9 +248,9 @@ def remove_description(dct):
pass
def main():
def main(here: str):
args = parse_args()
meta = load_hocon(os.path.dirname(__file__) + "/meta.conf")
meta = load_hocon(here + "/meta.conf")
validator_for(meta).check_schema(meta)
driver = LazyDriver()
@@ -300,4 +300,4 @@ def main():
if __name__ == "__main__":
main()
main(here=os.path.dirname(__file__))