Skip to content

Conversation

@mjvogelsong
Copy link
Contributor

OpenAPI generator (annoyingly) uses openapi_client as a top-level import, which forces us to expose openapi_client as a top-level package when it's pip installed. This causes issues if a consumer also uses openapi_client.

So, as a workaround, we can rename openapi_client to groundlight_openapi_client to prevent name clashes. There might be a better way to do this, but we're not sure how yet.

@mjvogelsong mjvogelsong requested a review from brandon-wada April 4, 2024 00:42
-g python \
-o ./generated
-o ./generated \
--additional-properties=packageName=groundlight_openapi_client
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change. Everything else is either auto-generated or CTRL-F changing references from openapi_client to groundlight_openapi_client

Copy link
Collaborator

@brandon-wada brandon-wada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this is has to be the record for number of files changed. I love autogenerated code

@mjvogelsong mjvogelsong merged commit 370edf5 into main Apr 4, 2024
@mjvogelsong mjvogelsong deleted the move-generated branch April 4, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants