Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#571 fix: added get_dependencies() call to generator methods to check & get the dependencies for openapi #572

Merged
merged 1 commit into from
Sep 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/cloudharness_utilities/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def generate_fastapi_server(app_path):


def generate_model(base_path=ROOT):
get_dependencies()
lib_path = f"{base_path}/libraries/models"

# Generate model stuff: use python-flask generator
Expand Down Expand Up @@ -78,6 +79,7 @@ def generate_python_client(module, openapi_file, client_src_path, lib_name=LIB_N


def generate_ts_client(openapi_file):
get_dependencies()
config_path = os.path.join(os.path.dirname(openapi_file), 'config.json')
out_dir = f"{os.path.dirname(os.path.dirname(openapi_file))}/frontend/src/rest"
command = f"java -jar {CODEGEN} generate " \
Expand Down