1
0
mirror of synced 2025-12-26 05:05:18 -05:00

Base-python: fix exception when reading schemas from shared/ folder (#3127)

This commit is contained in:
Sherif A. Nada
2021-04-29 00:38:54 -07:00
committed by GitHub
parent e7007268f1
commit 80ce46f357
4 changed files with 4 additions and 5 deletions

View File

@@ -38,8 +38,7 @@ class JsonSchemaResolver:
@staticmethod
def _load_shared_schema_refs(shared_schemas_path: str):
shared_file_names = [f for f in os.scandir(shared_schemas_path) if f.isfile()]
shared_file_names = [f.name for f in os.scandir(shared_schemas_path) if f.is_file()]
shared_schema_refs = {}
for shared_file in shared_file_names:
with open(os.path.join(shared_schemas_path, shared_file)) as data_file: