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

Normalize case handling for objects and callbacks #24

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

arg0d
Copy link
Collaborator

@arg0d arg0d commented Oct 24, 2023

Objects and callbacks were not handling case consistently in generated across code, leading to compilation errors in some cases (see #22).

The main problem arises in capital acronym handling, i.e. HTTPClient. Such acronyms are converted using heck::to_upper_camel_case, which converts upper case acronym HTTP into upper camel case Http, i.e. HttpClient.

Fixes #22.

Savolro
Savolro previously approved these changes Oct 31, 2023
Objects and callbacks were not handling case consistently in generated
across code, leading to compilation errors in some cases (see #22).

The main problem arises in capital acronym handling, i.e. `HTTPClient`.
Such acronyms are converted using `heck::to_upper_camel_case`, which
converts upper case acronym `HTTP` into upper camel case `Http`, i.e.
`HttpClient`.
@arg0d arg0d force-pushed the kristupas/case-handling-object-callbacks branch from f327880 to f46d8d3 Compare November 14, 2023 12:12
@arg0d arg0d requested a review from Savolro November 14, 2023 12:18
@arg0d arg0d merged commit a9a8149 into main Nov 14, 2023
3 checks passed
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.

Use of callback interface results in compile errors
2 participants