-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sweep: unify json_name to camel case for python entities #666
Comments
Here's the PR! #667.💎 Sweep Pro: I used GPT-4 to create this ticket. You have unlimited GPT-4 tickets. Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.Lines 1 to 19 in 5ff083e
Lines 1 to 25 in 5ff083e
Lines 1 to 44 in 5ff083e
Lines 1 to 54 in 5ff083e
sdk/python/util/name_protocol.py Lines 1 to 161 in 5ff083e
Step 2: ⌨️ Coding
• Change the `json_name` attribute of the `EmailAddress` class to 'emailAddress'.
• No changes needed as the `json_name` attribute of the `PaymentDevice` class is already in camel case.
• Change the `json_name` attribute of the `Payment` class to 'payment'.
• Change the `json_name` attribute of the `Address` class to 'address'.
• No changes needed as this file contains utility functions and does not define any entities. Step 3: 🔁 Code ReviewI have finished reviewing the code for completeness. I did not find errors for . 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. |
in sdk/python in some of entities the json_name is lower case like "lower_case" but we want them all camel case like "camelCase"
eg. in sdk/python/payment_devices.py the json_name of PaymentDevice entity is 'paymentDevice' which is correct, however, in sdk/python/email_addresses.py the json name of EmailAddress is lower name.
Now I want you to read all the files in sdk/python if you find json_name of a entity is given as lower case, convert it to camel case.
Checklist
python/email_addresses.py
✅ Commit810a5a2
python/payment_devices.py
❌ Failedpython/payments.py
❌ Failedpython/addresses.py
❌ Failedpython/util/name_protocol.py
❌ FailedThe text was updated successfully, but these errors were encountered: