Skip to content

Commit

Permalink
schema: Add a special dir away from the data to do schema things
Browse files Browse the repository at this point in the history
Avoid a potential clash of schema data vs grant data if file names were
the same. Also remove redundant comment about 1.4 release. This has
happened now.
  • Loading branch information
michaelwood committed Apr 3, 2024
1 parent af55da5 commit 37aaa51
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib360dataquality/cove/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class Schema360(SchemaJsonMixin):
_pkg_schema_obj = {}
_schema_obj = {}

def __init__(self, working_dir) -> None:
self.working_dir = working_dir
def __init__(self, data_dir) -> None:
self.working_dir = os.path.join(data_dir, "schema")

self.schema_host = self.working_dir # required by lib-cove

Expand Down Expand Up @@ -131,8 +131,6 @@ def resolve_extension(self, json_data) -> Optional[list]:
Returns an array of extension_infos or None
"""

# FIXME NOTE this currently requires env SCHEMA_BRANCH=1.4-staging

try:
extension_ids = json_data["extensions"]
except KeyError:
Expand Down

0 comments on commit 37aaa51

Please sign in to comment.